question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File saving at tmp folder even after specifying path to uploads

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Santoshahcommented, Apr 19, 2018

Wow. that’s great. I would probably try VS code now. Thanks @LinusU

0reactions
LinusUcommented, Apr 18, 2018

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:

screen shot 2018-04-18 at 21 11 23
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found