react_file_uploader | React and Express file uploader | File Upload library
kandi X-RAY | react_file_uploader Summary
kandi X-RAY | react_file_uploader Summary
React and Express file uploader
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react_file_uploader
react_file_uploader Key Features
react_file_uploader Examples and Code Snippets
Community Discussions
Trending Discussions on react_file_uploader
QUESTION
I have a problem that I can't find a solution for a long time. It only happens when uploading a file that is already in the upload folder (file with same name). If I upload file for the first time it works fine. I'm using express-fileupload package.
I used this code as a reference https://github.com/bradtraversy/react_file_uploader
My form worked fine until I added file upload, first I thought that its something wrong on the front end, I use React and thought there is some state that is changing and causing the page to reload, but later I used Postman and it still reloads my app, doesn't matter on what page I am, even If I log out and upload the file with the Postman it reloads the page, but only if the file is already uploaded. This doesn't happen in the code above.
This is how my code looks
controller/upload.js
...ANSWER
Answered 2021-May-02 at 20:00After few more days of bug searching, I found how to fix it. It looks like there is a problem with react-scripts, I had version 3.4.0 installed but when I downgraded it to 3.0.1 upload started working normally, also version 3.1.0 works fine. The upload works normally when I create a build folder, then the version of react-scripts doesn't matter.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react_file_uploader
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page