PDA

View Full Version : Attachment passthrough (use an attachment link to FTP file)


Clegg
08-18-2003, 05:31 PM
I would like to use the vB security on the attachments as a method for offering large files (100 - 400MB size -patches for games, etc...). I have played around with the "Attachments as Files" setup adn that works OK but on files of 300+MB, it seems PHP trys to spool the file to a temp dir or something before starting the download. This tells me there is far more processing going on than I think is needed for this process to work. if 3 people click on that 300mb file at once it almost crashes the server (1GB ram P4 2Ghz) due to the HTTPD session that spikes up in CPU usage and TONS of memory uses for about 15 seconds. (per session). THen the memory drops down and the download starts.

What I am looking for is something that shows up as an attachment like normal, but instead of doing any processing it just passes an FTP link to the user after it verifys that the user is legit.

If this doesnt work or isnt possible I will more than likely try and use some 3rd party download manager, but I would SO much like to use the vB security base with this.

pie
08-21-2003, 02:36 AM
How about an url type link

ftp://www.url.com...........

with the security



if so..... search for the "message to admins hack" and do it like that.

urafreak
09-24-2003, 06:37 PM
i search for that and can't find what i'm looking for... gotta link?

urafreak
09-26-2003, 04:18 PM
anyone have any ideas? i need this! everytime i try and upload movies to the database it craps out.

i have tried everything vbulletin.com suggests for my problem to no avail. help me!!!

gmarik
10-25-2003, 03:49 PM
Not a bad idea at all.

Mutt
01-29-2004, 10:02 PM
I actually have this but never wrote anything for it. The attachment looks like any other, but I upload it via ftp and when I make the post I enter the full path to the file. I have them in a dir below public, so nobody can get to them without using the link and the link uses vb's permissions.

It's for v2 with attachments as files. I'd have no idea how to write it for the current v3

Natch
01-29-2004, 10:27 PM
Try using the Links Database hack in the beta forum ... it creats a link or file download depending on the nature of the info you put in - so if you put in a link to a FTP://login:password@ip.address.com/ it should work a treat :)