TinyPortal

Development => Feedback => Topic started by: voovietnam on August 16, 2009, 03:50:03 PM

Title: Downloads Manager - Link to files instead of upload ?
Post by: voovietnam on August 16, 2009, 03:50:03 PM
Hi all,

I'm wondering is it possible to make new download item by provide a link instead of upload a new file, since I'm planning to separate files, media content from web server to make it more easier to scale in furture.

For example: Instead of upload files to www.tienf.com, I upload them to media.tienf.com and put link to Download Manager.
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: ZarPrime on August 16, 2009, 04:23:37 PM
There has been discussion in the past about remote hosting of files.  Here's a link to one of those topics ...
http://www.tinyportal.net/index.php/topic,28656.0.html

I will move this topic to feedback to see if there is any other interest in it.

ZarPrime
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: voovietnam on August 16, 2009, 04:51:00 PM
Quote from: G6 on March 02, 2009, 06:56:42 AM
Bloc have said that outside linking to files will be possible at some time in the development, but cant say when or even what version.
Will probably not show or be until he have made the module handling for TP 100%

Yes, I see that someone share the same favorite to me :D, thank you a lot to lets me know. Atm, should I make a patch to get it work ? Is it difficult ?
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: ZarPrime on August 16, 2009, 04:57:23 PM
I would say that it wouldn't be that difficult if, and only if, permissions as to who can download are not an issue.  In other words, If you want to be able to say what members can download files, and which members are denied that permission, this is where you would run into problems.

ZarPrime
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: voovietnam on August 16, 2009, 05:26:28 PM
In my situation, seem we dont need to restrict users from our resources, just have to be our members and they can download as much as they'd like.

Which file should I start to implement it ?
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: ZarPrime on August 16, 2009, 05:38:58 PM
If it was me, and it didn't matter who can download, I would just setup a separate page with links to the files.  This could even be an html or php article and you could stick the link to the article in a TP menu in your left panel or something.  If you use an article with links, you could even have separate articles containing links to different categories, and each link can have a place in your menu.  shouldn't be too difficult.  In other words, this would sort of be something that wouldn't even be connected to the TP Download Manager.

Since this is in Feedback now, Bloc or some of the others here might have some other ideas for you.

ZP
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: IchBin on August 16, 2009, 06:28:40 PM
Quote from: voovietnam on August 16, 2009, 05:26:28 PM
In my situation, seem we dont need to restrict users from our resources, just have to be our members and they can download as much as they'd like.

Which file should I start to implement it ?
Moving the downloads outside of TP's folders will allow everyone to share those links across the internet. Which means, sooner or later people won't be downloading them from your site by visiting your site. They'll be downloading the files from some other site that is getting traffic because they are linking to your files.
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: voovietnam on August 17, 2009, 08:46:18 AM
Yes, that's really a problems, but the idea of separate media/files from www is nice, doesn't it ? Do you got  idea how we would do so without get risk by direct download ?
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: Lesmond on August 17, 2009, 09:22:22 AM
what you could do is setup password protected folder, and link it from a side block, call it member only downloads, but then you would have to send only the members you wanted that password, or you could put that password to those  members private board  :idiot2:

try this http://www.desilva.biz/apache/pwdweb.html
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: IchBin on August 17, 2009, 02:19:42 PM
You could try copying the .htaccess file from the tp-downloads folder to the place you are wanting to upload your files. This will only allow the server to access the downloads. I'm not sure how that works across subdomains on the same machine though.
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: voovietnam on August 19, 2009, 07:27:26 PM
Yes, thank for your idea. I'll try out and lets all you know if it work ?
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: voovietnam on September 16, 2009, 11:35:58 AM
It won't work at all, have anyone suggest a better approach ?
Title: Re: Downloads Manager - Link to files instead of upload ?
Post by: G6Cad on September 16, 2009, 12:31:41 PM
Not more then whats been suggested allready  :-\