| upload file(image) to different domains is it possible? |
omoutop

msg:4254106 | 7:34 am on Jan 17, 2011 (gmt 0) | 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

msg:4254147 | 11:26 am on Jan 17, 2011 (gmt 0) | domain and its dir will have to be on the same server for your script to store uploaded files there
|
omoutop

msg:4254177 | 12:46 pm on Jan 17, 2011 (gmt 0) | and the included files? on same server as the script OR i can include them from different server?
|
rainborick

msg:4254232 | 4:30 pm on Jan 17, 2011 (gmt 0) | 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

msg:4254241 | 4:50 pm on Jan 17, 2011 (gmt 0) | 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.
|
|
|