Create direct file HTTP link

SMB, NFS, FTP, web file manager and Rsync server.
Locked
User avatar
brightblade81
Posts: 2
Joined: 08 Jan 2022, 01:44

Create direct file HTTP link

Post by brightblade81 »

Hi,
My goal is to be able to download files on my internal network through HTTP (or HTTPS) with direct links from other machines, i.e. from a linux box download the file abc.zip from my NAS:
wget http://192.168.1.10/path/to/file/abc.zip

I created a shared file link in the admin panel which gives me a non-direct link, where using a browser I can download the file but I wasn't able to get the underlying direct link so I could do that.
http://192.168.168.10:8181/tos/index.ph ... admin&sid=....

How do I find the direct link to the file so I can use command line tools like wget?

My TOS version is 4.1.30

Thank you!
User avatar
brightblade81
Posts: 2
Joined: 08 Jan 2022, 01:44

Re: Create direct file HTTP link

Post by brightblade81 »

I didn't figure out the direct path to continue using the share option(probably would need to read the javascript to determine the generated path). I did find under the Control Panel a Web Server option, which I pointed at one of my shared directories and it supported the capability I needed, so now I could have paths like:
http://192.168.1.10:8800/path/to/file/abc.zip

then now command line wget ... would work.
Locked

Return to “File Services”