Filebrowser: File download via wget

Created on 23 Feb 2018  路  4Comments  路  Source: filebrowser/filebrowser

It is possible download a file via wget command passing user and password as argument?

For example, I want to download a file named "myfile.zip", placed in root. I would like to execute the following command to download the file via command line:
wget --use=MYUSER --password=MYPASSWORD http://mydomain.com/api/myfile.zip.

Is this possible?

Best regards

AS

Most helpful comment

filebrowser is using jwt instead of basicauth by default. If you intend to download and authorize with basicauth, try to set noauth in filebrowser and set corresponding basicauth middleware on the downstream.

Accepting jwt and basicauth at the same time may be tricky on the current implementation.

All 4 comments

filebrowser is using jwt instead of basicauth by default. If you intend to download and authorize with basicauth, try to set noauth in filebrowser and set corresponding basicauth middleware on the downstream.

Accepting jwt and basicauth at the same time may be tricky on the current implementation.

@Equim-chan
Seems related to 2 things.
1.authorization
2.path

@la0wei Path is /api/download/{related file path to scope}. For example, with scope /srv, to download a file /srv/test/100M.bin, GET /api/download/test/100M.bin.

Since we use JWT you cannot do that. You'd need to exchange your username and password with the server to obtain a JWT token and then use it to authenticate any other requests.

What you can do is use the share feature to obtain a permalink for a certain resource. Then you can just wget/curl it.

I'll close this issue as we already answered the question.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

quentin-rey picture quentin-rey  路  6Comments

Annihil8ted picture Annihil8ted  路  3Comments

Marneus68 picture Marneus68  路  6Comments

chanyk-joseph picture chanyk-joseph  路  4Comments

ghost picture ghost  路  6Comments