Upload Widget not working!
Hi, no matter what I try I can't even get the Upload Widget to work on my page!
When I click, nothing shows up, only a spinner.
What am I doing wrong? Please help!
-
Hi Priscilla,
When using the Upload Widget locally, it will not work when opening the HTML file directly. You will need to create a local web server, such as running on 127.0.0.1:3001 (or a different port) and then access that HTML page in your browser via that IP+Port. You can quickly run a server in a particular directory by running `php -S 127.0.0.1:3001` or if you have Python3 installed `python3 -m http.server 3001`.
Could you please try this out and let me know if it then works for you?
-
Hi Priscilla,
In this code snippet, you're creating a Node Web Application with the Express library but that won't work as intended.
Instead, could you please navigate to within the folder where you have the HTML file with the Upload Widget implemented? From your first screenshot, that should be /Users/scatterbrain/Desktop/mp3test and inside this folder try running the below in the terminal:
php -S 127.0.0.1:3001
After running the above, navigate to: 127.0.0.1:3001/index.html in your browser and that should open the page where you implemented the Upload Widget.
-
Hi Priscilla,
Thanks for testing that.
I found why that would be the case. Could you please try the same steps you have done above (i.e. starting the server and accessing the HTML page) but access your page locally using http://localhost:3001 rather than http://127.0.0.1:3001 and let me know if that works for you?
There is an issue on our side currently when the Widget accessed from a page by IP (not just 127.0.0.1) but it will work if you access it via a hostname (such as "localhost").
Looking forward to your response.
Post is closed for comments.
Comments
9 comments