spacemandev-git / fvtt-card-support

Adds programmatic deck support to FoundryVTT
MIT License
10 stars 10 forks source link

foundry version .0.8.8 attempting to upload an sdf file #83

Open jcolson opened 3 years ago

jcolson commented 3 years ago

met with the exception:

deck.js:364 error caught, directory does not exist
deck.js:562 Uncaught (in promise) TypeError: Cannot read property 'name' of undefined
    at uploadFile (deck.js:562)
    at async deck.js:370

although, the directory IS created under Decks/{randomdirname}

jcolson commented 3 years ago

also receiving this error when i add a deck image for the sdf upload:

deck.js:427 Uncaught (in promise) DOMException: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.
(anonymous) @ deck.js:427
async function (async)
(anonymous) @ deck.js:338
create @ deck.js:323
callback @ decksupport.js:102
submit @ foundry.js:20449
_onClickButton @ foundry.js:20412
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
Norc commented 3 years ago

Hmm, interesting. Are you on The Forge or some other hosting service?

On Thu, Jul 8, 2021 at 1:29 PM Jay Colson @.***> wrote:

met with the exception:

deck.js:364 error caught, directory does not exist deck.js:562 Uncaught (in promise) TypeError: Cannot read property 'name' of undefined at uploadFile (deck.js:562) at async deck.js:370

although, the directory IS created under Decks/{randomdirname}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/spacemandev-git/fvtt-card-support/issues/83, or unsubscribe https://github.com/notifications/unsubscribe-auth/APNL7OYKLOJCQAINGPXWHNTTWXOAJANCNFSM5ABFVTIQ .

jcolson commented 3 years ago

no, it's self hosted (i use docker).

I did get it to work.

Steps I took: 1) tried to upload my sdf with no deck image (got the first error) .. it seems that there is no way around this, you must upload a deck image. 2) tried with a deck image, and received the second error. 3) moved the console.log(deckfile); statement from line 339 to 338 (trying to debug what the deckfile was prior to the exception) 4) it worked ... ?? (i ended debugging at that point, as I was on to play with my new deck ...)