S
S
Sergey Goryachev2016-03-25 00:24:38
linux
Sergey Goryachev, 2016-03-25 00:24:38

How to store files in the cloud, and give via www?

There is a server on CentOS 6, Yandex.Disk is mounted to it. Everything is good here.
But I want to go a little further, give files (programs, movies) from Yandex.
Created a folder / mnt / yadisk / program / it contains a stack of files, but this is garbage.
I need these files to be downloaded through the site.
Let's say through site.com/program/programma.exe along this path.
In which direction should I dig the solution to my problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
O. J, 2016-03-25
@webirus

Thus, you will directly give files from your server. thereby once again create a load on it, as well as on the channel to the network.
Better use Yandex REST or WebDav API
https://tech.yandex.ru/disk/webdav/
https://tech.yandex.ru/disk/rest/
You will only provide a download link directly from Yandex.
Without creating a load on the Internet channel and server.

Y
Yuri Kolesnikov, 2016-03-31
@yurikoles

Yandex.Disk, as far as I can see, does not allow you to get a direct link to a file so that it can be used in tags <img>or <video>.
Google Drive has this, Google Drive Web Page Hosting But it already says that
The instruction is simple: you open full access to the document, the link to the file should look like this: http://www.googledrive.com/host/<doc-id>, copy doc_id in the document properties, and the new version of Google Drive UI already has a simple button that gives a link to the file, copy everything after "id =".
Here is an example of a final link: https://www.googledrive.com/host/0B_0zPP4Jcen_TVBE...
And here is the same file, straight from Google:0B_0zPP4Jcen_TVBENGhUb3FJdlk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question