File saving at tmp folder even after specifying path to uploads
See original GitHub issueI have specified path to uploads folder which is present in my project root directory.
[http://prntscr.com/j2lr2o](screenshot of directory)
const storage = multer.diskStorage({ desitnation: function(req, file, cb){ cb(null, "uploads/") }, filename: function(req, file, cb){ cb(null, file.originalname); } })
Even after this my images is saved at tmp folder.
[http://prntscr.com/j2lre0](tmp folder)
Please help me.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Should temporary files be saved to /tmp or the current working ...
Cleaning temp files from the working directory could easily become messy if the files are stored together with application and user files.
Read more >How does one specify a temp directory for file uploads in ...
To change the value of your true temp directory, you can use "-Djava.io.tmp=/path/to/dir" VM argument to specify whatever you want before ...
Read more >The selected file /tmp/file*** could not be uploaded ... - Drupal
When using Drupal your browser returns the following error The selected file /tmp/file*** could not be uploaded, because the destination ...
Read more >How do I set the upload_tmp_dir? | Media Temple Community
Overview. The temporary directory is used for storing files when a file is uploaded. This directory must be writable by whichever user PHP...
Read more >Error message when you open or save a file in Microsoft Excel
This error message occurs when you save or open a file if the path to the file (including the file name) exceeds 218...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wow. that’s great. I would probably try VS code now. Thanks @LinusU
I don’t think that Sublime can utilize type information. Not even sure if Atom can do that, at least not out of the box, but there is probably some plugin for it.
VS Code would have caught this error for you without any extra configuration: