mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
Fixed frontend upload
This commit is contained in:
parent
f42202259d
commit
14ddf495b3
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user