diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-21 21:07:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-21 21:07:13 +0000 |
commit | 93690ee830321659689a23e011ec399fa7730201 (patch) | |
tree | 7dfc5a4593c49c8c80f22af147b9a4991dc8671e /public/javascripts | |
parent | 64763bece35c76f611ceaedd243aa93cb1358344 (diff) | |
download | redmine-93690ee830321659689a23e011ec399fa7730201.tar.gz redmine-93690ee830321659689a23e011ec399fa7730201.zip |
Send the content type as parameter when uploading a file.
git-svn-id: http://svn.redmine.org/redmine/trunk@13788 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r-- | public/javascripts/attachments.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index f80098665..dea928f26 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -94,6 +94,7 @@ function uploadBlob(blob, uploadUrl, attachmentId, options) { uploadUrl = uploadUrl + '?attachment_id=' + attachmentId; if (blob instanceof window.File) { uploadUrl += '&filename=' + encodeURIComponent(blob.name); + uploadUrl += '&content_type=' + encodeURIComponent(blob.type); } return $.ajax(uploadUrl, { |