Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the FileReference object

Status
Not open for further replies.

BabyJeffy

Programmer
Sep 10, 2003
4,189
GB
Is it possible to specify the full path to an arbitrary file on a users computer, with a view to then upload it (to a server) using Flash? I am attempting to test a flash based file upload solution (initially described here: thread250-1420478).

My gut feeling is that there is no way this should be possible (and it appears that there is no path property of the FileReference object - and all the other properties of the object are read only).

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
You can with AIR's File Class. But in Flash you need to use FileReference.browse(). It's a basic security feature - do I want your Flash movie to poke into my hard drive and upload my personal data to your server script? I don't think so.

Kenneth Kawamoto
 
...do I want your Flash movie to poke into my hard drive and upload my personal data to your server script?...
Of course you don't - and this is the main reason why I am convinced that this is not possible... but I was hoping someone (anyone?) who codes in this forum could offer confirmation. I would be very disappointed if you could do this - but I would like confirmation so that this problem can "go away once and for all".

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top