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
3
votes
2 answers

Flex FileReference prohibited characters

The use of FileReference has a constraint on valid characters. Error: Error #2087: The FileReference.download() file name contains prohibited characters. This is fine since I guess the restriction comes from the underlying file system anyway Is…
MonoThreaded
  • 11,429
  • 12
  • 71
  • 102
3
votes
1 answer

How to Save Sound as Ringtone/Notification?

Hey everyone so Not sure if this is possible using as3 for Android Air App. I have been at it for a week now with some progress but not what I would want it to be. So far I have it to where when the user swipes on the sound it brings up the storage…
Nathan
  • 536
  • 4
  • 21
3
votes
1 answer

Flex: Read bytearray

I use the following to upload a file to Flex: private var filer:FileReference; protected function button1_clickHandler(event:MouseEvent):void { var fd:String = "Files (*)"; var fe:String = "*"; …
Adnan
  • 25,882
  • 18
  • 81
  • 110
3
votes
3 answers

Flex 4 fileReference selected image file dimmensions (width and height)

I use a fileReference.browse() to select an image file from the harddrive. How can I check the Width and Height of the selected image file please? Thank you!
Francisc
  • 77,430
  • 63
  • 180
  • 276
3
votes
2 answers

As3 FileReference download dynamic url

As3 FileReference download dynamic url not send variable data; Sample: downloadXls.buttonMode=true; import flash.net.FileReference; import flash.events.Event; var localRef:FileReference; var fileRequest:URLRequest= new…
Limitless isa
  • 3,689
  • 36
  • 28
3
votes
2 answers

as3 Air for Android downloading and saving remote files

The Code below downloads an mp3 to your phone from a server using as3 Air For Android. I want to use these files later in the app so I have the following question: How can I make it so the files save to a particular folder in the android app rather…
Papa De Beau
  • 3,744
  • 18
  • 79
  • 137
3
votes
1 answer

Flex FileReference.browse() opens a save dialog - NOT an open dialog

IE will open an open dialog but FireFox 12 with Flash plug-in 11.2.202.235 opens a save dialog. This happens for 2 other co-workers but not for anyone else - any ideas?
Paul T
  • 31
  • 1
2
votes
1 answer

Adobe Flash FileReference Save method - save as a file type in Windows 7

I am using FileReference.save to save a jpg to the user's computer. In Windows 7, I pass in 'test.jpg' as the file name to be saved but only 'test' appears in the file save dialogue ('test.jpg' appears as the file name in Windows Vista). So,…
Steven
  • 1,949
  • 2
  • 17
  • 30
2
votes
2 answers

Is it possible to convert a File to a FileReference behind the scenes?

It would appear that FileReference.upload() is the only way in which you can upload a file to the server in Flash and get feedback about its upload state via a PROGRESS callback. All other methods just go off into the ether and come back when the…
Yevgeny Simkin
  • 27,946
  • 39
  • 137
  • 236
2
votes
1 answer

Saving a file in ActionScript 3.0 using FileReference

Hi there I have a game in actionscript 3.0 I have been browsing the internet, I have found something like this var file:FileReference = new FileReference(); file.addEventListener(Event.SELECT, _onRefSelect); file.addEventListener(Event.CANCEL,…
rcanu
  • 91
  • 1
  • 3
  • 9
2
votes
1 answer

Flex URLLoader Upload - Determinate Progress Bar?

My application asks the user to select files for upload using a FileReference / FileReferenceList. The client then compresses the File data and uses URLLoader to upload the contents of the file. One problem with the URLLoader is that the progress…
Sri
  • 5,805
  • 10
  • 50
  • 68
2
votes
3 answers

Eclipse how to reference file in a different src under the same project

My current setup in eclipse is like this: trunk --working/src --resources I have a java file inside a package under working/src and I am trying to retrieve a file in the resources. The path I am using is "../resources/file.txt". However I am getting…
jason
  • 189
  • 1
  • 3
  • 10
2
votes
2 answers

Is it possible to access raw file data as FileReference.load() loads it in memory?

I think it's not, but maybe I'm wrong. Anyone? UPDATE: It's not.
jayarjo
  • 16,124
  • 24
  • 94
  • 138
2
votes
1 answer

File Reference Number in USN returning empty

I'm using this MSDN link to read USN records programatically. https://learn.microsoft.com/en-us/windows/win32/fileio/walking-a-buffer-of-change-journal-records Error: Exception thrown at 0x00007FFD58682666 (ucrtbased.dll) in Project1.exe:…
priyalsoni
  • 49
  • 9
2
votes
2 answers

Frontend image upload and build a file reference in typo3

First, im really new at typo3. I build a extension with extension builder, and now i want to upload images from the Frontend. The upload and the creating Folder function is working fine. But typo3 doesnt output the file after upload. According to…
itanimulli
  • 33
  • 5
1
2
3
11 12