Skip to content

fix: spread filelist into array to satisfy useUpload #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

kevcjones
Copy link

Related to #5

This seems like the simplest change to keep the code mostly as is and avoids the 'throw Missing Files' error.

@kevcjones kevcjones changed the title fix: spread filelist into array fix: spread filelist into array to satisfy useUpload Jun 13, 2024
@farnabaz
Copy link
Contributor

When do you have missing files error? Is there any specific situation?

Passing an input file into the upload function is also fine, since the function checks for the files property and use it if its a file-list

Are you using any specific device or browser? I tested chrome, firefox and safari and in all cases form.image works as expected

@kevcjones
Copy link
Author

I'll test it again, i was just following the first install and run guide and ran into an immediate issue, and the issue was structure of the data if i recall from the form not being as expected. The 'missing files' part was just the throw when it failed to resolve the upload 'File' object.

@kevcjones
Copy link
Author

Browser was latest Chrome on OSX latest

@atinux
Copy link
Contributor

atinux commented Jul 17, 2024

Well I tried and got no error though.

Do you have a screen recording of the error?

@atinux atinux closed this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants