[BUG] storage._handleFile is not a function
See original GitHub issue#Information
- Version: 5.x
- Packages: “@types/multer”: “^1.3.9”, “@tsed/multipartfiles”: “^5.41.2”, “multer”: “1.4.2”,
I set option @ServerSetings
{
multer: {
storage: handleStorage(),
}
With handleStore function will return multer.StorageEngine, but I when upload is error and crash node
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
TypeError: storage._handleFile is not a function · Issue #702
TypeError : storage._handleFile is not a ... mfu.html. I am getting the error of storage._handleFile is not a Function as shown below
Read more >TypeError: storage._handleFile is not a function - Stack Overflow
Just multer because using that you can still upload the image but not to the database. Instead you can store the image into...
Read more >TypeError: storage._handleFile is not a function
TypeError : storage._handleFile is not a function. #node #javascript #react. require('dotenv') const multer = require('multer')
Read more >Typeerror: Storage._Handlefile Is Not A Function - ADocLib
Typeerror: Storage._Handlefile Is Not A Function. Now go to Visual studio code and run the Reactjs project by using 'npm start' you can...
Read more >TypeError: storage._handleFile is not a function - DevPress
TypeError : storage._handleFile is not a function. require('dotenv') const multer = require('multer') const sftpMulter ...
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 Free
Top 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
Fixed 😃
The same thing happened to me, I had to pass the storage function directly to the controller, because as a global function it doesn’t work. I guess it should be fixed, while you can do it on the controller: