sqladmin icon indicating copy to clipboard operation
sqladmin copied to clipboard

New feature: File download support

Open EnotShow opened this issue 1 year ago • 2 comments

Now if the database value is the file path and the file exists it will be shown as a downloadable file

Before: image After: image

Changes affect templates: deteils.html, list.html

EnotShow avatar Jan 23 '24 15:01 EnotShow

This PR solves the #701 issue.

agn-7 avatar Jan 26 '24 15:01 agn-7

I decided that the user wants to have not only a download method but a reading method too. Now, besides the download method, there's an additional option to open files directly in a browser.

Additionally, I've addressed a security concern from the previous version. Instead of using file paths in the URL, which is insecure.

Now the result looks like: image

Please let me know when you check my MR. I'm will grateful for the feedback

EnotShow avatar Feb 01 '24 19:02 EnotShow