-
Notifications
You must be signed in to change notification settings - Fork 313
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
[bug]:UploadDropZone component in Svelte prompts for multiple files even if endpoint has only one file allowed (then silently fails) #923
Comments
@Pascaltib Confirmed this behaviour, I think I may have already addressed it as part of #886, but there are still some outstanding issues in that PR that I have not resolved yet. (unfortunately I am not super familiar with svelte, so it has been slow for me to work on) |
I see! Good luck :) |
You can try the canary linked in that PR, although the dropzone button is not working for some reason, which may be a worse behavior :/ |
Those changes are now in the latest released version of the uploadthing/svelte package! Feel free to reopen if you are still facing issues! |
十分抱歉 !我的账户在前段时间被黑客盗用,并且传播相同的病毒文件,如果你们遇到要下载一个fix.zip的千万不要下载!就是它导致我账户被攻占的 |
That's awesome! I'll try it out and let you know if I have any issues 🙏 |
Hey @markflorkowski. Unfortunately the behaviour of the UploadDropZone remains bugged. It is actually a bit worse now since before it would throw an error but now it silently fails and remains stuck. Could you reopen this issue? I do not have the permissions to do so. I am using: |
Hey @Pascaltib sorry to hear that. Will try to take a look this week. |
@Pascaltib - just as a sanity check, can you remove the carets, delete your |
Issue persists after clean install without carets 🥲 |
Thank you for confirming that :/ Haven't had a chance to dig in on this yet, but I promise I have not forgotten. |
Any updates on this @markflorkowski? |
+1 getting this error on v7 with sveltekit 14:53:51.959 INFO handleUploadAction Sending presigned URLs to client
ᐉ { "presignedUrls": [{"url":"https://sea1.ingest.uploadthing.com/pc9M973G6Mu8mSUVK8wwqJ0Td4H3rx1j9zsPl7KQ2aYLOAZX?expires=1727182431954&x-ut-identifier=3lmh1ldr8g&x-ut-file-name=main-qimg-bc54d4d995526ae5eb9877c1c00ce725-lq.jfif&x-ut-file-size=113049&x-ut-file-type=image%252Fjpeg&x-ut-slug=imageUploader&x-ut-content-disposition=inline&signature=hmac-sha256%3Dc23a4f2245bfee6cafea6c9b430c4d30d85f7d2fcd4bb3fae9670281a4ca78e7","key":"pc9M973G6Mu8mSUVK8wwqJ0Td4H3rx1j9zsPl7KQ2aYLOAZX","name":"main-qimg-bc54d4d995526ae5eb9877c1c00ce725-lq.jfif","customId":null}] }
14:53:54.677 INFO handleUploadAction -> handleJsonLineStream Successfully simulated 'callback' event
14:53:54.988 ERROR handleCallbackRequest Failed to register callback result (400)
ᐉ { "error": {"error":"Invalid request body","details":[{"code":"invalid_type","expected":"object","received":"string","path":["callbackData"],"message":"Expected object, received string"}]} } The image does upload however it doesn't return a response object |
Work in progres for this, as well as issues in other framework adapters - #980 |
@cliffordkleinsr Your issue looks related to this: #968 Make sure to return an object from |
Confirmed the original issue is fixed by #980. Release will be out shortly |
Provide environment information
Describe the bug
Even though my fileroute specifies that only one file is allowed, the UploadDropzone allows users to select multiple files which will then trigger an error.
Here is my component usage:
I cannot find any way to prevent the file selector from allowing for multiple uploads. The documentation is pretty limited for svelte and trying to decipher the types is very difficult.
Is there a way to do this?
I have marked this as a bug since
<UploadButton {uploader} />
works as expected only allowing for one file to be chosen.Link to reproduction
None provided!
To reproduce
ex/
Additional information
No response
👨👧👦 Contributing
Code of Conduct
The text was updated successfully, but these errors were encountered: