mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 06:03:25 +00:00
How to show texts instead of download button? #224
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @khvnhtung on GitHub.
Hello,
Thanks for your interesting project. I've tried downloading and run in on my server. Uploaded several text files for testing but it seems that the website is not showing the texts but only download buttons. Is there an option to enable this?
Thanks.
@paolafrancesca commented on GitHub:
@khvnhtung the right tag is
v1.1.6please, use
dutchcoders/transfer.sh:vX.Y.Zinstead oflatestsince you'll be sure to have a proper release@paolafrancesca commented on GitHub:
it seems that lstat on the saved file (that will return the content type of the file to enable content preview) fails when running in the docker container: probably with the right user/volume setup in docker this issue would be solved.
anyway I'd rather refactored the code so that the content type is read from the metadata, where we have this info anyway, having no need to fetch the same from the file in the storage.
as soon as the docker image tagged
v1.1.4will be ready you can pull and the issue will be solved for you setup@paolafrancesca commented on GitHub:
@khvnhtung please, provide some steps to reproduce the issue. maybe a screenshot as well
in the preview page with the download button there should be the preview of the content of the file, unless you uploaded the file without extension
@khvnhtung commented on GitHub: