wger
wger copied to clipboard
[BUG] Exercise image not being upload
I'm not able to upload a new image for the exercise, only videos are working.
Steps to Reproduce
- Edit an exercise
- Click on "Add" button to upload image, select image (jpeg, png, doesn't matter, it won't work)
- It should make a POST request (as it does with the video), but nothing happens
- Try to click on "Save" button, it will make a PATCH request, but also, nothing happens
Environment
- Latest docker image.
- Nginx as reverse proxy
Also, the "Alternative Name" also doesn't appear to be working properly, I fill the field, click save, nothing happens.
Are there any errors in the browser's console or in the docker logs? Might be a permissions issue.
Unfortunately, I don't have the container running anymore, but as far as I checked, no errors reported in the container. The thing is that the button didn't do anything.
I have the same issue. After I click the add button and selected the image, there is an error in browser's console. By the way, I don't seen any request in network tab, might be an issue of FE?
Attach the error log:
output.10f910354a3f.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'title')
at output.10f910354a3f.js:1:632955
at h (output.10f910354a3f.js:1:399561)
at Generator.<anonymous> (output.10f910354a3f.js:1:400884)
at Generator.next (output.10f910354a3f.js:1:399971)
at Zl (output.10f910354a3f.js:1:557482)
at a (output.10f910354a3f.js:1:557686)
at output.10f910354a3f.js:1:557747
at new Promise (<anonymous>)
at output.10f910354a3f.js:1:557626
at output.10f910354a3f.js:1:633316
Same issue here. After selecting an image to be uploaded an error is logged in Firefox:
Uncaught (in promise) TypeError: t.imageData is undefined
wger version 2.3.0a2