mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 06:03:25 +00:00
Download Button /get/xxx/file instead of /xxx/file #263
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 @nachtswirdesdunkel on GitHub.
Clicking on the zip icon the download starts
clicking on the url you get forwarded to a page with a direct download button.
clicking on the download button you again get redirected to the same page instead of downloading the file.
changing the url in the browser from /xxx/file to /get/xxx/file
the download starts as desired.
why not chage the url from the download button into /get/xxx/file ?
i use a selfhosted version on docker behind a proxy
@paolafrancesca commented on GitHub:
@nachtswirdesdunkel the behaviour for donwload was changed originally (before I became maintainer) to limit some kind of abuse that happened on http://transfer.sh (I don't know the details)
currently opening
/xxx/filewill show a preview page when opening the link in browser directly or external link. If the referer url path and current path are the same it will be downloaded.also if the request doesn't contains an
Accept: text/htmlheader the download will start (this cover default curl behaviour)I would not change this behaviour, since it could break a lot of existing third party integration, but for sure we could use
/get/xxx/fileurl in the preview page@paolafrancesca commented on GitHub:
the proxy probably doesn't set the referrer, what do you use as proxy?
@nachtswirdesdunkel commented on GitHub:
ok
i tried it without proxy and the setup works as you decribe.
Therefore the proxy does something disrupting the behaviour.
thanks for the quick reply.
@nachtswirdesdunkel commented on GitHub:
i use apache proxy
here the conf files
and here the docker run