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

Why is TextInput updating after I hit fileReferencer.browse button a second time

In Flex 4, I am trying to make a simple browse button update the text field of an TextInput object with the file name that the browse button gets. It doesn't have to be the full path, all I want is the file name to show up. It only shows up after…
crstamps2
  • 606
  • 2
  • 6
  • 16
0
votes
1 answer

Flash 8 FileReference and file integrity check

Flash 8 FileReference API gives you the possibility to check periodically for the number of bytes being transmitted: listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void { trace("onProgress with…
vyger
0
votes
2 answers

Adobe Flex :File Reference Error 1061

I want to save XML File using Flex 4 SDK var fr:FileReference=new FileReference(); fr.save( newXmlRow, 'D:/Sample.xml' ); Error Shows : 1061 "Call to possibly Undefined method save through a reference with static type flash.net:FileReference"
Kumar K
  • 1
  • 1
0
votes
1 answer

TYPO3 9 Extbase EXT originalResource of FileReference is always NULL. Why?

I'm developing my own Extension. In this Extension it is possible to add Images to a content element. In the Backend viewing everything is working fine. In the DB the reference of sys_file to my database table via sys_file_reference looks good…
th3r3alpr0
  • 51
  • 8
0
votes
1 answer

ActionScript 3.0 loading an external image into a container movieclip?

I am new to AS3 and I need some help with the Senocular Transform Tool (AS3 version) I'm having trouble with loading in an external image such that I can transform with the Senocular Transform Tool class. I have managed to load in the picture but…
user595334
0
votes
3 answers

Excel upload in flex 3

am trying to upload excel file using filereference however when uploading it is throwing this error Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type. Action script error occured after continue it is uploading…
vardit
  • 29
  • 6
0
votes
1 answer

VSCode cannot locate path in Angular project

I am using VSCode to learn about the library ngx-bootstrap. The problem I am having however is that VSCode cannot recognize some of the paths used in the project (and I can't either!) For example, in one file, some code is imported from…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
0
votes
3 answers

Trigger save dialog for a static file - Flash

How do I trigger a save dialog for a static file in Flash? The file in question can be local or remote, if that's easier. In this case the file is a static image. I'm new to AS (and SO), but am astonished by how varied and convoluted the solutions…
Bede Constantinides
  • 2,424
  • 3
  • 25
  • 28
0
votes
2 answers

Upload in Flex without FileReference

Is there anyway of upload a file in flex 3.5 without using fileReference? Or even with fileReference, but without browsing, for example, I'm trying to take a printscreen and send it to my java web server thanks
Andre Mariano
  • 308
  • 1
  • 3
  • 14
0
votes
2 answers

TYPO3 ConnectionPool find a file after the uid of the file reference and update data

The concept is that, after a successfull save of my object, it should update a text in the database (With a Hook). Lets call the field 'succText'. The table i would like to access is the sys_file but i only get the sys_file_reference id when i save…
Aristeidis Karavas
  • 1,891
  • 10
  • 29
0
votes
1 answer

Chain FileReference.save

I'm in the process of creating a mindmap flash app which has to save all images that are imported into a single folder, along with an xml for data storage. While my current app works when not embedded in a HTML, it breaks as soon as it is due to…
Will Kru
  • 5,164
  • 3
  • 28
  • 41
0
votes
2 answers

FileReference doesn't fire SELECT Event

I have the following code. The problem is that neither SELECT nor CANCEL event never fired after i choose a file through browse dialog. I have MacOS 10.6 and FlashPlayer 10. What am i doing wrong? package { import flash.display.Sprite; import…
ILya
  • 2,670
  • 4
  • 27
  • 40
0
votes
1 answer

TYPO3 - Extbase - Detect missing files for a given FileReference

I've tried three different ways to detect if a FileReference's original file is still existing (i.e. file has been deleted outside TYPO3 using SFTP or similar): if($fileReference instanceof \TYPO3\CMS\Extbase\Domain\Model\FileReference) { …
JKB
  • 499
  • 2
  • 13
0
votes
1 answer

How to upload images in Flex 4 with Filereference?

I'm trying to upload images in Flex 4 and haven't got so much success with it yet. Somebody who can help? My code: private var fileref:FileReference; protected function…
marko
  • 10,684
  • 17
  • 71
  • 92
0
votes
1 answer

Saving an image from Flash on the server under different name

I followed this question: flash Actionscript 3 and php image upload I copied the code: function uploadFile( e:Event ):void { fileRef.upload( new URLRequest( "http://localhost/php5dev/test/upload_script.php" ), "as3File", false ); } and…
Randalfien
  • 396
  • 2
  • 3
  • 17