fix

parent ecaea638
...@@ -7,10 +7,12 @@ $(document).ready(function() { ...@@ -7,10 +7,12 @@ $(document).ready(function() {
Dropzone.options.blockUpload = { Dropzone.options.blockUpload = {
url: "/bids/bid/upload-files", url: "/bids/bid/upload-files",
maxFiles: 4, maxFiles: 4,
maxFilesize: 15,
addRemoveLinks: true, addRemoveLinks: true,
acceptedFiles: '.xls,.doc,.docx,.xlsx,.png,.jpeg,.gif,.bmp,.jpg,.zip,.rar,.tar,.pptx,.ppt,.csv', acceptedFiles: '.xls,.doc,.docx,.xlsx,.png,.jpeg,.gif,.bmp,.jpg,.zip,.rar,.tar,.pptx,.ppt,.csv',
dictRemoveFile: 'Удалить', dictRemoveFile: 'Удалить',
dictInvalidFileType: 'Приложенный файл не может быть загружен в целях безопасности. Пожалуйста, приложите файл в другом формате (Word, Pdf, PowerPoint, Excel).', dictInvalidFileType: 'Приложенный файл не может быть загружен в целях безопасности. Пожалуйста, приложите файл в другом формате (Word, Pdf, PowerPoint, Excel).',
dictFileTooBig: 'Максимальный размер файла составляет 15мб.',
success: function(first, response) success: function(first, response)
{ {
$('#files-zone').append('<input type="hidden" name="Bid[file][]" value="'+response.filename+'" />'); $('#files-zone').append('<input type="hidden" name="Bid[file][]" value="'+response.filename+'" />');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment