hay-kot / homebox

Homebox is the inventory and organization system built for the Home User
https://hay-kot.github.io/homebox/
GNU Affero General Public License v3.0
2.7k stars 210 forks source link

Downloading attachments generates generic filenames #854

Open Spreadcat opened 8 months ago

Spreadcat commented 8 months ago

First Check

Homebox Version

0041c277ad408eb2a325067d95e8654ebd78dba5

What is the issue you are experiencing?

After uploading either a PDF document or an *.xlsx file hombox shows the correct name for the attachment. When trying to save the file, the following happens

How can the maintainer reproduce the issue?

  1. Upload a PDF document of any kind to an asset/item and save the item.
  2. Click on the "download" button in the attachment section to initiate the download.
  3. When the file-download dialog opens and asks for the location of there to store the file, the pre-filled document name has changed to document instead of the original filename.

Deployment

Docker (Linux)

Deployment Details

No response

danielrosehill commented 8 months ago

I've noticed that for images the system will also autogenerate titles based on the renamed files. This makes it very difficult to manage the photographs associated with an asset (for instance if I want to delete a specific picture, it's impossible to know what the path is).