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

Error raised when uploading to local but not raised on production blobstore #57

Closed
cybercent opened this issue Mar 2, 2017 · 0 comments
Labels
bankrupt Feel free to reopen when necessary.

Comments

@cybercent
Copy link

Hi,

I'm sending 2 files to my local GAE blobstore from an iPhone app.
The files are uploaded and visible in the Blobstore Viewer, but a mime: invalid media parameter error is raised.

In production the files are also uploaded and no error is raised.

blobs, url_values, err := blobstore.ParseUpload(r)
if err != nil {
 // err is "mime: invalid media parameter"
}

For reference, the swift code that I use to set the mime types.

multipartFormData.append(videoData as Data,
withName: "file[]",
fileName: "\(videoName).mp4",
mimeType: "video/mp4")

multipartFormData.append(audioData as Data,
withName: "file[]",
fileName: "\(audioName).caf",
mimeType: "application/octet-stream")

I've tried with different mime types, and also only sending 1 file instead of 2. Same error on local, no error on GAE production.

@jinglundong jinglundong added the bankrupt Feel free to reopen when necessary. label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bankrupt Feel free to reopen when necessary.
Projects
None yet
Development

No branches or pull requests

2 participants