Forum Moderators: coopster

Message Too Old, No Replies

Build file hosting

How to upload files to remote server(s)?

         

undimon

11:56 am on Aug 10, 2008 (gmt 0)

10+ Year Member



Hello. I want build my own file hosting, something similar to rapidshare.de.

Structure will be like that:
1. WWW server (domain.com), where will be upload form
2. One or many File servers, for example will be one - fileserver1.com

WWW server domain.com has upload form:

<form action="/upload" method="post" enctype="multipart/form-data">
<input type="file" size="35" name="Filedata" />
<input type="submit" value="Upload" />
</form>

and fileserver1.com has upload.php

So, how to make file upload directly to fileserver1.com from domain.com?

undimon

7:58 am on Aug 11, 2008 (gmt 0)

10+ Year Member



hello, somebody help me? :)

Sekka

1:36 pm on Aug 11, 2008 (gmt 0)

10+ Year Member



Make the form's action be fileserver1.com/upload.php?

jatar_k

1:56 pm on Aug 11, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



if the form is on a particular domain/server then you have to upload there first. You could then move it to another server.

Really this is a complex architecture question, There is no how because the how depends on how you plan out your servers.

eeek

2:47 am on Aug 14, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



So, how to make file upload directly to fileserver1.com from domain.com?

The action attribute of the form supplies the URL to use when the submit button is clicked. So changing to this:

<form action="http://domain.com/upload.php" method="post" enctype="multipart/form-data">

ag_47

3:05 am on Aug 14, 2008 (gmt 0)

10+ Year Member



do you even need multiple servers at this point? Don't jump too far ahead just yet, start out small and improve along the way as needed.