-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Parsererror when upload to aws s3 #458
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
Comments
I'm getting the same thing, will investigate and hopefully figure it out :) |
Same issue |
You are receiving it because you do not have this If you have a 201 response, it comes with an XML. |
Hi Ruan, s3 compliant storage like Minio are unable to be used properly without this. |
Agreed, but still. This error is just because the amazon is not responding 201, thus, no XML response body. But yeah, it took some time for me to realize it. |
Was anyone able to resolve this? What change did you make? |
@inventionlabsSydney I tried using your forked version of the repo, but I get the same error :( |
Hey @scottweinert |
Also @scottweinert what branch did you work from on mine? |
@inventionlabsSydney I used your On Chrome, I get this after upload: Image is successfully added to my S3 bucket, but the success/error callbacks don't trigger due to these errors I believe. I also tried forking your repo and rebuilding to make sure the |
What's your config? and what's your backend service? |
@inventionlabsSydney I'm using a Node serverless backend to generate the presigned request. That seems to be working just fine on local, and production. Here is a gist to my Vue component: https://gist.github.com/scottweinert/73a87dcb3f6ba63950bf0adcf52edcb8 |
It took me a while to figure out how to work around this without using a fork, but it's possible thanks to @ruanltbg 's hint. You need to set the
But you also need to allow this parameter to be set in your POST policy or else you'll get an error from s3:
The relevant part there is the Now s3 will return with a status 201 instead of 204, allowing the existing code path in vue2-dropzone to work correctly. Hopefully the aforementioned PRs get merged so we don't have to work around this! |
Hi all, I got this issue while uploading to aws s3. Anyone have idea about this issue?

The text was updated successfully, but these errors were encountered: