PDA

View Full Version : How to get full local path + filename with filefield xtype ?



maneljn
6 Sep 2012, 7:53 AM
How can i obtain the full local path + filename in a change event of filefield xtype ??

I mean after user have selected a file, i want to know something like that

C:\folder\bla bla\bla \ file name

I want this because i have a form with an image (photo), and when user selects new file image, i want to preview in image object the local computer photo, before to submit and upload the file.

loiane
6 Sep 2012, 11:36 AM
For security reasons, you cannot get the client's file path from the request, only the filename.

What you can do in this case is upload the file to a temporary place and display it for the user; once the user confirms it, you save it on the permanent place.

Periyasamy A
25 Sep 2012, 5:57 AM
How to select a local folder to save newly created text file