Fixed frontend upload

This commit is contained in:
kanadeko 2017-01-16 05:35:36 -03:00
parent f42202259d
commit 14ddf495b3
2 changed files with 1 additions and 3 deletions

View File

@ -82,8 +82,6 @@ uploadsController.list = function(req, res){
file.date = new Date(file.created_at * 1000)
file.date = file.date.getFullYear() + '-' + file.date.getMonth() + '-' + file.date.getDate() + ' ' + (file.date.getHours() < 10 ? '0' : '') + file.date.getHours() + ':' + (file.date.getMinutes() < 10 ? '0' : '') + file.date.getMinutes() + ':' + (file.date.getSeconds() < 10 ? '0' : '') + file.date.getSeconds()
}
return res.json(files)

View File

@ -39,7 +39,7 @@ window.onload = function () {
var dropzone = new Dropzone('div#dropzone', {
url: '/api/upload',
paramName: 'file',
paramName: 'files[]',
maxFilesize: maxSize,
parallelUploads: 2,
uploadMultiple: false,