Unable to Upload Image – "File cannot be empty" Error & TypeError in Console

Viewed 141

I am experiencing an issue when trying to upload an image to the forum. Here’s what happens:

When I select an image file (e.g., mtdd-fail-dataset.png), I receive an error message saying "File cannot be empty."

The "Add" button remains disabled, preventing me from submitting the image.

Checking the browser console, I see the following error:

image.png

image.png

This is my docker compose file.

answer:
  image: apache/answer:latest
  ports:
    - "9080:80"
  restart: on-failure
  environment:
    - AUTO_INSTALL=true
    - DB_TYPE=postgres"
1 Answers

You can try to update the Authorized image extensions. After saving it, reload the page to make sure set correctly.

write-config.png

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Answer Meta.