contented: mime type fix (working)
This commit is contained in:
parent
382717d082
commit
24c2bfe7fb
@ -121,7 +121,7 @@ func (this *NTFServer) ContentedUploadSync(fileId string, expectSizeBytes int64)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
req.Header.Set("Content-Type", `multipart/form-data`)
|
||||
req.Header.Set("Content-Type", formValues.FormDataContentType()) // it's "multipart/form-data; boundary=xxxx" with a magic string
|
||||
uploadResp, err := http.DefaultClient.Do(req)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("Upload failed: %s", err.Error())
|
||||
|
Loading…
Reference in New Issue
Block a user