Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transferring images from one server to another

Status
Not open for further replies.

rastkocvetkovic

Programmer
Aug 11, 2002
63
SI
Regards!

With a little bit of help of our Tek-tips forums I've managed to transfer data from one server to another. Now I'm trying to transfer images - from server1.com to server2.com.
I already have HTML forms (input="file") that can upload the picture to server2.com, but I want this to be done automatically.
Therefore I've tried JAVASCRIPT:
I tried to manually javascript the values of this file-input-types - like <input name=&quot;image[]&quot; type=&quot;file&quot; value=&quot;<?=$path_to_image[$i]?>> and hide them into an invisible layer in <form><invisible layer><submit button></form>, but the the 'type=&quot;file&quot;' can't get values with 'value=&quot;something&quot;'... (eg. 'value=&quot;c:\something.jpg&quot;')

Should I try BINARY TRANSMISSION with fopen and fclose?
I surely don't want to use FTP due to security risks (password will be shown in the code).

Thank you for your tips on this.
 
hi

i can't see a mysql prob in there ;-)

as i remember, the value property of the file type input box is read only - security reasons
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top