Hi, Not sure about wget, but with curl you can do this:
Konsole output curl -J -O http://example.com/owncloud/index.php/s/E2XeY5svbmkN4F6/download and it will save using the correct file name that was delivered by the server in the Content-Disposition header. Cheers, Vincent On 18.08.2015 08:10, Martin Skjöldebrand wrote: > Hi, > > What is the best way of wget-ing a file from ownCloud? If I share a > file and then use the share link (e.g. https://my.domain/index.php/s/g > ibberishstring then I get a download named gibberishstring, while if I > go to the shared location, right-click on the download link and copy > the download location, then paste that as an argument to wget - then I > get the correct download named "download" rather than the file name. I > then have to rename the download to the correct name (e.g. mv download > my.tar.gz) and then I can extract the thing. > > Slightly roundabout as compared to e.g. Dropbox. > Is there an easier way of getting my file downloaded using wget I am > missing? > > /Martin s
signature.asc
Description: OpenPGP digital signature
_______________________________________________ User mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/user
