
I'm still working on my uploader and I'd like to know if it's possible to retrieve the local file path from SWFUpload. Having this path, I guess it would be possible to check queued image(s) in the browser before starting that specific upload. This would come in handy when lots of images are queued.
Nope
Flash does not provide the local path. Sorry. The feature is not available.
But I think you'll start to find that you won't be able to check the queued image in the browser in modern browsers. We did some tests and had trouble with this in the latest versions of FireFox, IE, Safari and Opera. It worked in some older versions.
Bummer
I just tried and you're right (I should have done before asking this). I can drag and open a local file in my browser (for instance:
file:///Users/username/Desktop/portrait.jpg) but if I put the link in a html page, it won't show the image, maybe because of security reasons.Because my uploader is meant to select lots of files together, I was hoping that before confirming each upload, I could compare queued files (for instance to see if two images are not actually the same).
Oh well, it wouldn't be possible anyway when Flash keeps the local path for itself (probably also because of security).
Flash 10 beta
This kind of stuff is supposed to be possible in Flash 10. Hopefully we'll get a lot more cool client-side features in Flash 10.
However, the current SWFUpload (v2.10) does not work at all in Flash Player 10 (beta).