mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-07 21:26:08 -05:00
Use a more suitable content type for file uploads
application/x-www-form-urlencoded;charset=UTF-8 is the default, which shinyapps.io cares about for some reason and tries to parse the data as such. By setting the content type to the more accurate application/octet-stream, no middleware should be tempted to futz with the contents.
This commit is contained in:
@@ -107,6 +107,7 @@ $.extend(FileUploader.prototype, FileProcessor.prototype);
|
||||
return xhrVal;
|
||||
},
|
||||
data: file,
|
||||
contentType: 'application/octet-stream',
|
||||
processData: false,
|
||||
success: function() {
|
||||
self.progressBytes += file.size;
|
||||
|
||||
Reference in New Issue
Block a user