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.

can not change "uploadDir" via constructor option

See original GitHub issue

In the current version of library (2.0.0-canary.20200226.1) option uploadDir in the constructor is ignored. Instead of this option, field this.uploadDir takes value from itself or set default value (temp dir) this part and this part

For now to fix this problem you should set form.uploadDir = 'your path'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Apr 2, 2020

It was resolved. Thank you!

0reactions
tunnckoCorecommented, Apr 2, 2020

Thanks for reminding me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - nodejs formidable changing uploadDir - Stack Overflow
The IncomingForm constructor takes an options object. You'll probably need to use the __dirname global in your path as well.
Read more >
node-formidable/formidable - GitHub
The most used, flexible, fast and streaming parser for multipart form data. Supports uploading to serverless environments, AWS S3, Azure, GCP or the ......
Read more >
Change dir of uploaded files - WordPress.org
Hello,. I've seen another topic covering this issue (https://wordpress.org/support/topic/how-to-change-upload-directory-2/). Copied the code and also used ...
Read more >
Uploading Files using Formidable in a Node.js Application
In this article, we will see how to use Formidable to handle multipart/form-data using Node.js, Express, and MongoDB.
Read more >
Class: AWS.S3.ManagedUpload — AWS SDK for JavaScript
ManagedUpload(options) ⇒ void constructor. Creates a managed upload object with ... ContentMD5 should not be provided when using the managed upload object.
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