Skip to content
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

upload-complete: "parts: This field is required" #237

Open
ctriantaf opened this issue Aug 12, 2021 · 3 comments
Open

upload-complete: "parts: This field is required" #237

ctriantaf opened this issue Aug 12, 2021 · 3 comments

Comments

@ctriantaf
Copy link

Hello,

I'm trying to integrate S3FileField into a Django project but I'm receiving the following error when trying to upload something.

{parts: [{etag: ["This field is required."]}]}

The request payload contains the following:

"parts":[{"part_number":1,"size":936}]}

Any ideas why I'm getting this error?
Thanks

@sandrofolk
Copy link

I have the same problem!

@aabreu
Copy link

aabreu commented Mar 7, 2022

I have the same error when using AWS_S3_SIGNATURE_VERSION = 's3v4'

Not using V4 signature produce the "signature does not match error"

I had found the following workaround: remove the file widget.js from your static folder, this makes the upload to happen when you hit save and not immediately after you chose the file.

I guess the problem is in the js, and s3-file-field upload it correctly within the PUT request?

@BioRazor
Copy link

BioRazor commented May 31, 2022

Same Problem! Maybe add it to the readme

I fixed it by adding the following CORS configuration to the bucket, notice the ETag. If you look at the site console, the error is given by an etag

[ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "PUT", "POST", "DELETE", "GET", "HEAD" ], "AllowedOrigins": [ "https://YOUR_DOMAIN.com" ], "ExposeHeaders": [ "ETag" ] } ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

4 participants