[owncloud-user] Best way of wget-ing

Vincent Petry pvince81 at owncloud.com
Tue Aug 18 08:11:36 GMT 2015


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.



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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/user/attachments/20150818/3d789a0e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.owncloud.org/pipermail/user/attachments/20150818/3d789a0e/attachment.sig>

More information about the User mailing list