M
M
Max Medar2015-10-19 14:27:54
linux
Max Medar, 2015-10-19 14:27:54

Submit a file available via http as local. How?

There is a direct link to the file: example.com/photo.jpg . How would you mount it so that programs think it's a regular local file? I know about fuse, but it would be hard to write the implementation myself. Maybe there is another option or a ready-made solution based on fuse? Or at least a very similar example that can be done. So far, only Linux is interested in solving the problem. Thank you.
UDP1. The file is hosted on a server to which there is no access, only direct links to the files. I want programs on my home computer to think that the file is on the hard drive. For example, there are many images on direct links. I need to mount them so that the image viewer thinks that all these files are on the hard drive, say, in the ~/Photos directory. The direct link to the file may change, but the viewer should not care, he should think that this is still the same file. No ftp and webdav. Just a direct link to the file.
UPD2. I did the download option. But this is the most extreme option.
UPD3. /etc/hosts doesn't match.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan Fedoseev, 2015-10-19
@MedVedar

httpfs.sourceforge.net ?
true 2006...

M
Maxim Grechushnikov, 2015-10-19
@maxyc_webber

/etc/hosts+lamp

C
Curly Brace, 2015-10-19
@stasuss

what does "local" mean? It's not clear exactly what is needed. using http addresses in programs will not work anyway. in any case, the path will be a local one, say /home/myHttpFS/example.com/photo.jpg
, only writing a script (or program) that will wget to download files that will be put into it comes to mind.
if you also need to put it back later, then you need to make access on the ftp server and teach the program (script) to track changes in files and upload them back.
but something very similar to cloud storage such as dropbox,
although here's what - web servers support webdav (well, at least they have modules for it plug-ins)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question