🏷️(backend) add content-type to uploaded files

All the uploaded files had the content-type set
to `application/octet-stream`. It create issues
when the file is downloaded from the frontend
because the browser doesn't know how to handle
the file.
We now determine the content-type of the file
and set it to the file object.
This commit is contained in:
Anthony LC
2025-01-15 15:58:46 +01:00
committed by Anthony LC
parent b8be010389
commit 5b4b100e90
6 changed files with 35 additions and 12 deletions

View File

@@ -76,6 +76,8 @@ RUN apk add \
pango \
shared-mime-info
RUN wget https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types -O /etc/mime.types
# Copy entrypoint
COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint