Forum Moderators: coopster

Message Too Old, No Replies

accessing full path of file on client computer after form submit

name can be accessed but can full file path without javascript?

         

proper_bo

4:18 pm on May 23, 2006 (gmt 0)

10+ Year Member



I am aware that javascript could copy the value of a form file field over to a hidden variable on submit but I was wondering if there is any way to access the full path of the uploaded file on the client machine after submit?

$_FILES['file1']['name'] gives just file name.

The reason I ask is the following.

I want to submit the file in the background to another server without having to upload it to the temp folder first. The bandwidth is something I can do without wasting.

Any thoughts on this? Everything is in place except for being able to access the file.

Thanks

ahmedtheking

9:07 am on May 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It would be much easier if you just used something like AJAX or PHP require to include a file from the server you want to upload on to handle the file upload. Otherwise, just create an iframe, and link to an uploader on the upload server

proper_bo

9:18 am on May 24, 2006 (gmt 0)

10+ Year Member



How would you use Ajax in this situation as it can't send files?
An include would still require the page to submit to the other server.

I can only see the iframe as an option really. Not a massive problem but not ideal.

ahmedtheking

9:22 am on May 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this: [phpclasses.org...]