-
Notifications
You must be signed in to change notification settings - Fork 105
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
gogol-storage: Multipart Upload incomplete/corrupted #16
Comments
Thanks for the helpful debugging. I'm currently traveling, so a fixed Hackage/Stackage version might take a week or so to land. |
Hi, no problem. I detected an additional problem, but less critical. I'm setting the content type of the object via the provided lens like here: But (with my quick fix from above), the object still remains "application/octet-stream". Without my fix it is completely wrong with the "multipart/form-data; Webkit-Boundary=" token as a content type. |
Accidentally closed via PR. Reopening to continue the |
Hi, The missing "ContentType" is getting problematic because the google storage api will reject wrong content-types (on 1.August 2016) . I've got a "Action Required" mail today. excerpt:
I would love to provide some help to fix this, but this part is part of the generated code-base I guess? And currently I don't have the time to wrap my head around it without any entrypoint or guide. |
Hi @MaxDaten, I'm currently in the midst of some GHC 8 build issues, once those are sorted I'll focus on this issue. No problem - I'm aware the generation components are opaque, and since the caveats regarding |
Thanks alot for your effort |
Hi,
I'm currently trying to upload a 2MB image to a bucket, but the upload seems to be corrupted. I'm running the example from
examples/gogol-examples
.I discovered that this lib uses
AltMedia
for theuploadType
query parameter. It resolves to"media"
as a value for the parameter, but this is wrong for multipart uploads and should be"multipart"
(https://cloud.google.com/storage/docs/json_api/v1/objects/insert).For a quick fix, I changed the Line 65 to:
and the image is now correctly uploaded.
The text was updated successfully, but these errors were encountered: