TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 03:23:01 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 39
  • Total: 39

Download Manager - Files hosting

Started by Unknownn, February 14, 2006, 04:07:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Unknownn

Hello,

I've search everywhere and I have a simple question : Is it possible to use external link when we download a file instead in "tp-downloads" directory in our site ?

For example if my forum is on http://www.mysite.com/smf/ and my file in http://www.othersite.com/file.rar ?

???

mandos

i'm interested in something like this to
up to now I haven't found any solution


Unknownn

Quote from: burglar on February 14, 2006, 04:50:34 PM
use the [url] www.domain.net/file.ext [/ url] option
I think you don't understad what I say. I know my english is not very good.

I'm talking about download manager when you use it for download a file like in this site to download Tiny Portal.

I just want to store my file in other site  :)

burglar

oh... that should  be possible!!  so you have the same downloads on another server with the same data on the other one but that's a very complex situation to explain right now... but it can be done if the sql servers can synchronise some data whats needed for the downloads....

mandos

i think he talks about one sql server :)
the second is just some space accessible through the web (my 24/7 pc for example...)


Tucker

Ok, you are thinking about an option to specify a download link instead of uploading a file.
I've got an idea to realize that: one more field in the upload file form for this link. In the sql-table smf_tp_dlmanager the link goes into the 'file' field and 'type' will be something new like 'dllink' instead of 'dlitem'. I will give it a try to code it, but first need to set up a board and portal on my home machine.

Tucker

Hm, I think I made it. There are a few things to be sorted out - but basically it works. One TODO is to manipulate headers to a linked gif or jpg in order to get a "download" and not that simple redirect  :-\

Feel free to test is at http://www.lucky-family.net

Any bug report is welcome!

Unknownn

Quote from: Tucker on February 14, 2006, 10:19:03 PM
Ok, you are thinking about an option to specify a download link instead of uploading a file.
Yes it is that !!

I'm testing at http://www.lucky-family.net/ and when I download the files called "Snowboarding" and "Halloween" I'm redirect to a site with the picture because Firefox known how to open these files. You have to send headers to force download like
header("Content-type: application/force-download");
in PHP

Do you understand ?

It would be interesting if Bloc add this to TinyPortal, no ?

Thank you very much Tucker, you are my saviour ! LoL