-
Notifications
You must be signed in to change notification settings - Fork 36
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
problem with header modifications for public upload #4
Comments
I'm getting the same issue while streaming an image. The image uploads without issue if I don't provide additional headers, but fails once I provide a
|
this issue remains, but @dmkelly I have a workaround that works in my case (perhaps not yours). I used AWS's policy generator to set everything in my upload folder to public-read. The problem of course is that I had to do it for the whole folder (which I don't want to do), and it doesn't solve your issue with Content-Type. But you might try this in the short term until this is fixed or we get some feedback from @nathanoehlman |
I ended up examining my data more closely and realized that I could probably get away with single file uploads instead of multi-part uploads and am instead using the AWS SDK so I am no longer affected by this issue. |
Having the same problem right now and while investigating, I found that this module uses a POST request to initiate the upload, not a PUT. Because of that the headers are discarded. The params in this case need to be a part od the form data, as described here: http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html |
Exact same problem here. Any update on this? |
hi - I'm successfully using mpu, and have code like this:
These uploads always work.
However, as soon I use a header designed to make my file public-readable, I get a vague error. Here's my mod; the only difference is the intro of the header:
I'm getting an
err
which I print:This doesn't tell me much. Have I misused mpu, perhaps?
Thanks!
The text was updated successfully, but these errors were encountered: