Welcome to WebmasterWorld Guest from 54.226.246.160

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

upload file(image) to different domains

is it possible?

     

omoutop

7:34 am on Jan 17, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello all and thanks for any advice/tips.

We have a domain (www.site1.com) in one server (server1).
There, we give our users the option to upload images (jpg) to our server. They can do so from multiple pages and not just from one page).

After some years, we now need to move the new uploads to a new server/domain - we are running low on available disk space.

So, my question is: can our upload script sends the new images to a different domain to be stored there?
I mean: upload script works in site1.com (server1) and will store images in site2.com (server2).

The upload script works in a popup/modal window and includes some files (check login of user and some classes for resizing images).

Anyango

11:26 am on Jan 17, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



domain and its dir will have to be on the same server for your script to store uploaded files there

omoutop

12:46 pm on Jan 17, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



and the included files?
on same server as the script OR i can include them from different server?

rainborick

4:30 pm on Jan 17, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Assuming the second domain is on a different server, then your upload script must reside within that second domain on the second server in order to store files there. So the <form> tag on your first domain will point to the script on the second domain. But once the upload had completed, you could certainly have that script redirect the user back to a page on the first domain so that they would not generally be aware of the second domain.

Anyango

4:50 pm on Jan 17, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



same for all code includes, they have to reside on the same server and must "Not" be called with http, cause then they will be returned to you parsed.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month