Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit bf1e2ede authored by Martin Déclert's avatar Martin Déclert :cd:
Browse files

Fix upload directory path

parent 59941131
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ const uploadFile = file => {
const randomStr = Math.random().toString(36).substr(2, 8)
file.name = `${randomStr}.${fileExt}`
file.path = __dirname + "/uploads/" + file.name
file.path = process.cwd() + "/uploads/" + file.name
}
module.exports = async (req, res, next) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment