Forum Moderators: rogerd

Message Too Old, No Replies

How Can I Upload Files to a Free File Hosting Site Programmatically

halp!

         

shorepound

2:22 pm on May 22, 2007 (gmt 0)

10+ Year Member



I maintain a particular web site, and the site owner would like to allow users to register, and upon sucessful registration, upload movie clips in various formats. This I have no problem with.

We are hoping to, however, find a way to host these movie clips outside of our website hosting plan, say with a free or exclusive file/video hosting service. I know this can be done, but my question is this:

Is there a way to programmatically upload these files to such services as described above? Has anyone heard of this or actually done it? I am open to any programming language used.

Many thanks in advance.

phranque

2:36 pm on May 22, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you could write a script that will generate the correct ftp commands if you can find a service that provides ftp access.
otherwise you could use something like the perl CGI module to construct an HTTP POST with the attachment that simulates the form you would typically submit through the web page.

i would find a host with a compatible terms of service before worrying about the technical solution.