Enable to upload a PDF file

This commit is contained in:
Yota Ichino
2015-10-12 20:51:06 +09:00
parent 30a8cefc37
commit 98fc64deaa
3 changed files with 13 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ $(function(){
$([$('#@textareaId').closest('div')[0], $('#@textareaId').next('div')[0]]).dropzone({
url: '@path/upload/image/@owner/@repository',
maxFilesize: 10,
acceptedFiles: 'image/*',
acceptedFiles: 'image/*,application/pdf',
dictInvalidFileType: 'Unfortunately, we don\'t support that file type. Try again with a PNG, GIF, or JPG.',
previewTemplate: "<div class=\"dz-preview\">\n <div class=\"dz-progress\"><span class=\"dz-upload\" data-dz-uploadprogress>Uploading your images...</span></div>\n <div class=\"dz-error-message\"><span data-dz-errormessage></span></div>\n</div>",
success: function(file, id) {