You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** the picture is uploaded but the app crashed and this is what i get :**
fs.js:136
throw new ERR_INVALID_CALLBACK();
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at makeCallback (fs.js:136:11)
at Object.unlink (fs.js:938:14)
at ReadStream. (D:\disktop\Stage 2\gestion d'absence\projet\node_modules\jquery-file-upload-middleware\lib\uploadhandler.js:149:48)
at ReadStream.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
The text was updated successfully, but these errors were encountered:
removing unused routes which dont map to real functions
fixing indenting issues
prepare module includes comment structure
super -> super()
fixing winston
memory store
jquery file upload #TODO: fixing unlink async aguidrevitch/jquery-file-upload-middleware#85
i use jquery-file-upload-middleware to upload my images to the server but it's crashed everytime !!
this my config:
upload.configure({
uploadDir:'./store/test',
uploadUrl: '/store/test',
})
app.use('/toto', upload.fileHandler());
in the front:
** the picture is uploaded but the app crashed and this is what i get :**
fs.js:136
throw new ERR_INVALID_CALLBACK();
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at makeCallback (fs.js:136:11)
at Object.unlink (fs.js:938:14)
at ReadStream. (D:\disktop\Stage 2\gestion d'absence\projet\node_modules\jquery-file-upload-middleware\lib\uploadhandler.js:149:48)
at ReadStream.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
The text was updated successfully, but these errors were encountered: