Home arrow Forum

Remository Forum

 


alc0905

Karma: 0  
direct download from file list - bypass file info - 2010/07/02 20:41 Hi all,

I have done quite a bit of searching on these forms, and have not found a proper solution to my issue.

I am trying to mimic the file download behavior of docman. In other words, when you are viewing a category (or subcategory), you are presented with a list of files in that directory. If you click the file name, it starts the downloading process for that file, and remains on the list page.

Is it possible in remository to initiate a file download from the file lists page, and remain on that page (i.e. not redirected to the file info page, or have the 'thank you' page displayed).

I realize you can configure remository to display a direct download link, disable file info, and to download the file immediately through the configuration options. However, I have not achieved my goals with these options.

Thanks

Antonio
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:direct download from file list - bypass file info - 2010/07/02 23:41 No, not currently.

The design of Remository aims to have a permanent URL for each file that will download that file, but will not do so without going to a page of your site.

The file URL can therefore be displayed by anyone on the web and any attempt to download the file will always take the user to your site, not simply deliver the file.

Without a feature of that kind, either there are no permanent URLs for files or other people can build web sites that offer files for which you provide the bandwidth!

Post edited by: admin, at: 2010/07/02 23:41
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
Ahiru_San

Karma: 0  
Re:direct download from file list - bypass file info - 2010/08/02 20:03 Hi there.. I recently started using Joomla and Remository, and was wondering the same thing.

I've made a simple change in remository.html.php somewhere around line 325~ (I've changed other things, so not really sure of its actual line)

Code:

     protected function fileListing ($file$container$downlogo$remUser$showContainer=false$type='A'$downlinktype=0) {         $thumbnails = new remositoryThumbnails($file);         $filefunc $downlinktype 'directinfo' 'download';



EDIT: The 'download' in the last line was previously "fileinfo" I think.
Also, to make things work I left the "Allow File Info" turned on, so it is like it's going to link the file to its info, but since the "download" is in "fileinfo" place, it starts downloading automatically with the temporary link.

Mind I ask, is it possible to make links in the menus (from joomla template and modules) that goes to the "Edit/Delete" buttons in file info? Since I can no longer reach the file info (unless I'm uploading a file, right after the upload is complete) is there a way to have a link (like the "search/upload" in the footer) to edit and delete without even knowing the file ID? How can I add something that shows me what files are there so I can check which one I want to edit/delete from a link (and not from file info)?

Thanks

Post edited by: Ahiru_San, at: 2010/08/02 20:06
  | | Sorry, you do not currently have permission to write here.

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 12 guest online