wger icon indicating copy to clipboard operation
wger copied to clipboard

[BUG] Exercise image not being upload

Open eHonnef opened this issue 11 months ago • 5 comments

I'm not able to upload a new image for the exercise, only videos are working.

Steps to Reproduce

  1. Edit an exercise
  2. Click on "Add" button to upload image, select image (jpeg, png, doesn't matter, it won't work)
  3. It should make a POST request (as it does with the video), but nothing happens
  4. 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.

eHonnef avatar Mar 11 '24 19:03 eHonnef

Are there any errors in the browser's console or in the docker logs? Might be a permissions issue.

erikderzweite avatar Apr 09 '24 11:04 erikderzweite

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.

eHonnef avatar Apr 09 '24 17:04 eHonnef

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

27H_PGZMN@NO`(6}@RRJY(B

johan-6 avatar May 05 '24 08:05 johan-6

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

seyfeb avatar Jul 24 '24 16:07 seyfeb