When a user has selected a file for upload is it possible to get the entire
path to the file from the FileReference class? I need to be able to send
this onto the server. I am using PHP on the server for this application and
it does not have a method that has the entire path only the name of the
file. 

This is how I do this in javascript. 

 

 

<form name="imgform" method="post" action="upload.php"
enctype="multipart/form-data">

<input type="hidden" name="userfilename" id="userfilename">

<input type="file" name="userfile" id="userfile" size="64" maxlength="256"

 
onChange="document.imgform.userfilename.value =
document.imgform.userfile.value">

<input type="submit" value="Send File" />

 

 

 


 

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to