LibrePhotos / librephotos

A self-hosted open source photo management service. This is the repository of the backend.
MIT License
6.67k stars 290 forks source link

Use original filename when saving photos or videos #1273

Closed HMKnapp closed 1 month ago

HMKnapp commented 1 month ago

Describe the enhancement you'd like Saving a file should give it its original filename instead of the hash

Describe why this will benefit the LibrePhotos Being able to save an image with its original filename is better in every way.

Saving e.g. http://localhost:3000/media/photos/316f2524acd7f5841c924fe4f1a422641 should use IMG_2024_0101_1234.jpg instead of 316f2524acd7f5841c924fe4f1a422641.jpg

All that is needed is an additional HTTP header: Content-Disposition: inline; filename="IMG_2024_0101_1234.jpg" inline so it preserves the possibility to view the image in the browser, and at the same time you can save it with its real filename.

derneuere commented 1 month ago

Implemented, is now available on dev or in the next release :)