Questions tagged [filereference]

A file reference is an object that allows programs to refer to files on a file system, and operate on them. Browser-based applications (e.g. JavaScript and ActionScript) need them to save and upload files to / from the user's file system because all file system interaction is policed by the browser itself.

A file reference is an object available in most programming languages' libraries.

In ActionScript, file upload and download must be done through the FileReference class, and the Flash Player has to channel those requests to the hosting browser.

172 questions
0
votes
1 answer

download multiple files flash

i have a Flash application with a datagrid filled with filenames and i want the user to be able to check multiple files from that grid and download them to his local drive. The files are stored in a blob field in a database and im using php ro…
0
votes
1 answer

Flex - FileReference upload timeout

I'm working on a air project and I'm using the FileReference class to upload a file to a server. The server side script must receive the file and do some stuff, then reply with an xml telling me if everything is gone OK or KO. The problem is that,…
Davide Berra
  • 6,387
  • 2
  • 29
  • 50
0
votes
1 answer

getting relative path from flash.net.FileReference;

I'm trying to get the relative or full path from a FileReference object after its browsed but I think I'm bashing my head up against a wall (It's begining to hurt) anybody got a way of getting a file's path from the user.
pyrpenta
0
votes
1 answer

AS3: Is there anyway to tell if connection has been lost during FileReference.upload()?

Observing FileReference.upload() I notice that if I'm uploading large file (big enough for upload to last for some time) and cut the connection (by pulling out LAN cable for example) in the middle of upload, Flash doesn't report an error... In fact…
jayarjo
  • 16,124
  • 24
  • 94
  • 138
0
votes
1 answer

AS3 FileReference Download Doesn't Work in IE/FF (Works fine in Chrome)

I am generating an Excel file with Java on the back-end and it seems to work just fine in Chrome but for whatever reason it doesn't in FF/IE. I have the very latest of Flash in each browser listed from this site:…
PublicHandle
  • 512
  • 1
  • 5
  • 10
0
votes
1 answer

Manipulate file data (byte array)

I'm totally new to ActionScript 3, though I'm a OOP coder. I've seen with this snippet that I can easily change bytes one by one. var j:int = myFile._fileRef.data.length; while (j--) { myfile._fileRef.data[j] += 128; } When I upload a file…
Léon Pelletier
  • 2,701
  • 2
  • 40
  • 67
0
votes
1 answer

In SAS 9.2, How do I clear a a URL fileref?

I wrote a SAS macro kind of like this... %macro (myname=,myurl=); filename myfile URL "&myurl"; data &myname; infile myfile dlm=','; input field1 field2; run; %mend; It works once, but Whenever I run it again, I get log messages…
bokov
  • 3,444
  • 2
  • 31
  • 49
0
votes
0 answers

Flex FileReference.upload does not trigger any events on subsequent calls

I'm using the PLUpload library for browser file uploads. It's Flash module uses FileReference. When testing the uploads I kill the web server to see how it handles it and can be programmatically recovered from. Not something a lot of people test it…
Tim
  • 1,615
  • 1
  • 14
  • 17
0
votes
2 answers

AS3 Error 2038 on Windows only

hope someone can help me with this! I've written a simple online 3d editor in Flash - it's about to go out to a selection of clients but the file uploader has a bit of a glitch which has only just reared its ugly head. Using FileReference to upload…
MickMalone1983
  • 1,054
  • 8
  • 17
0
votes
0 answers

Uploading files with filereference with firefox browser

uploading files with in Flash with Filereference Class is not working in FireFox . it's ok in IE , chrome ... I tried to incluse SessionId and this does'nt work for me. i guess firefox is uploading the same file Twice . is there a way to block the…
Sami Jmii
  • 460
  • 7
  • 17
0
votes
1 answer

AS3 Flex - users on Windows can select any file on FileReference.browse regardless of FileFilter

I have this line of code in my app, but when i run it on a Windows pc the user is given the ability to choose between "Custom Files" (which should actually read "clips") and (the default, i guess) "all files". In this case the user can, for…
0
votes
1 answer

Simulating user event

I have a web page with a file swf and an HTML button: when I click the button I want to save (download to my disk) the current image my swf file is showing (it is a sort of image gallery). It perfectly works when the button is inside my swf but it…
AsTheWormTurns
  • 1,318
  • 3
  • 13
  • 26
0
votes
1 answer

Flash AS3 Help detecting a loaded file

I'm trying to load an external and local XML file to read its data, but I don't really know how to detect when the file has been loaded, I'm just able to open the broser window, here is what I have done package { import flash.display.Sprite; …
Elias
0
votes
3 answers

Javascript File References Problem (with jQuery)

Before, I had this: