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
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.
Most helpful comment
filebrowser is using jwt instead of basicauth by default. If you intend to download and authorize with basicauth, try to set
noauthin filebrowser and set corresponding basicauth middleware on the downstream.Accepting jwt and basicauth at the same time may be tricky on the current implementation.