Community Forums

ATutor Support

direct link


You must be signed-in to post.

AuthorSubject
 
Page: 1
gviabcua

Avatar for gviabcua
Subject: direct linkQuote this post in your reply
How can i get a direct link on file that in at_content/file_storage folder?
Posted: 2016-12-03 16:32:07
greg

Avatar for greg
Subject: Re: direct linkQuote this post in your reply
For security reasons, you cannot link to files directly outside of the file storage utility.
Posted: 2016-12-04 10:04:36
gviabcua

Avatar for gviabcua
Subject: Re: direct linkQuote this post in your reply
ok, how can i generate download link without using chekboxes if i know file id?
Posted: 2016-12-04 11:40:12
greg

Avatar for greg
Subject: Re: direct linkQuote this post in your reply
A download URL would look something like the following, changing up the values to those of the file you want to be downloadable:

mods/_standard/file_storage/index.php?ot=1&oid=5&download=1&files%5B%5D=4

The easiest way to generate this URL, is to edit an image in File Storage, the view the source of the image in the edit screen, and copy its URL. Then adjust the values to match those of the file you want students to download.
Posted: 2016-12-04 12:55:16
gviabcua

Avatar for gviabcua
Subject: Re: direct linkQuote this post in your reply
Thanks! It's the best solution for me. And the last question: what url to download folder (without chekboxes)?
Posted: 2016-12-04 14:16:21
greg

Avatar for greg
Subject: Re: direct linkQuote this post in your reply
There is no option to download a folder.
Posted: 2016-12-05 09:02:36
 
Page: 1

You must be signed-in to post.

Related Articles