Next.js Discord

Discord Forum

upload file

Unanswered
Gharial posted this in #help-forum
Open in Discord
GharialOP
Q:
I've recently implemented a functionality to upload CSV files from our web application to our server. During my testing across all environments, everything worked perfectly. However, some users have reported an issue where clicking the file upload button doesn't trigger the file directory window/popup at all – the button appears to be completely unresponsive. They either have to reload or restart the browser to resolve the issue.
Has anyone else experienced this issue before? I'm unsure how to approach debugging this problem.

Implementation Details:
Framework: Next.js application
Hosting: AWS EC2 instance behind an Nginx proxy
Upload Method: XMLHttpRequest (XHR) – opted for XHR over Fetch to display a progress bar

Simplified Version of the code:
https://gist.github.com/redt0mato/34327526949b8e3152c4cdead8da8603

0 Replies