Bash script should return download link to web view
The bash script uses the upload URL to build the download link.
Example:
./jirafeau.sh send dummyfile.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 23906 100 15 100 23891 4345 6758k --:--:-- --:--:-- --:--:-- 7777k
Download link:
http://example.com/script.php?h=0PXvhcmK
Direct download link:
http://example.com/script.php?h=0PXvhcmK&d=1
Delete link:
http://example.com/script.php?h=0PXvhcmK&d=3e3c5
I guess this is done to offer the matching GET method for the API, and run this script as alone (dont use the web view).
I think the bash script should return a download link to web view. So that I can upload a file via command line but give somebody else a regular link to the web view.
Maybe something like this example output:
./jirafeau.sh send dummyfile.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 23906 100 15 100 23891 4345 6758k --:--:-- --:--:-- --:--:-- 7777k
Download link:
http://example.com/f.php?h=0PXvhcmK
Delete link:
http://example.com/f.php?h=0PXvhcmK&d=3e3c5
Download via API:
./jirafeau.sh get http://example.com/script.php?h=0PXvhcmK [PASSWORD]
Delete via API:
./jirafeau.sh delete http://example.com/script.php?h=0PXvhcmK&d=3e3c5