max763 commented on issue #301:
URL:
https://github.com/apache/cordova-plugin-file-transfer/issues/301#issuecomment-823168826
meanwhile I changed CDVFileTransfer.m for ios and it's working now
` if (mimeType != nil) {
//[postBodyBeforeFile appendData:[[NSString
stringWithFormat:@"Content-Type: %@\r\n", mimeType]
dataUsingEncoding:NSUTF8StringEnco
ding]];
[postBodyBeforeFile appendData:[[NSString
stringWithFormat:@"Content-Type: %@\r\n\r\n", mimeType]
dataUsingEncoding:NSUTF8StringEn
coding]];
}
//[postBodyBeforeFile appendData:[[NSString
stringWithFormat:@"Content-Length: %ld\r\n\r\n", (long)[fileData length]]
dataUsingEncodin
g:NSUTF8StringEncoding]]; `
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]