Page MenuHomePhabricator

Is it possible to create a static URL to a file download?
Closed, ResolvedPublic

Asked by ftdysa on Mar 9 2017, 8:26 PM.

Details

I am looking to be able to give my users an static URL to a raw file in diffusion.

Basically, I've written install instructions along the lines of:

wget http://xxxx/file/data/cfgoqvp5ub2x35a6ftky/PHID-FILE-wlopi4oac3qdebppc4rt/bmsd_install.sh && chmod +x bmsd_install.sh && ./bmsd_install.sh

Ideally, this URL would always be the current version of the file bmsd_install.sh but it looks like the URL is not static because the URL that I initially used is now 404'ing.

Answers

avivey
Updated 2,696 Days Ago

https://secure.phabricator.com/source/phabricator/browse/master/README.md?view=raw

Basically, navigate to the file in Diffusion and then append ?view=raw the the URI. It will redirect the users to the right place.

(This involves creating a temporary file, which is what PHID-FILE- part refers to.)

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.