How to get the local file path when select file

265 views
Skip to first unread message

Herist.ZHOU

unread,
Mar 5, 2012, 9:01:02 AM3/5/12
to SWFUpload
Hi all :
I want to get the local file path and show the Image before
uploading file. I used the 'fileQueued' event and 'getFile' function.
And I found that the file json obj has no 'path' value.
Guys , How to get it ?
Regarts

James Wright

unread,
Mar 5, 2012, 9:13:23 AM3/5/12
to Herist.ZHOU, SWFUpload
To put it simply, you can't. Well at least not cross platform, cross browser. Using swfupload.

HTML 5 supports this functionality but is not universally supported.

Your only real solution is to upload the image in the background, preview it server side, then using ajax update a HTML element with the preview.

Not ideal, especially for large images.

James.
Reply all
Reply to author
Forward
0 new messages