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

suppress dialog box when downloading files using flash actionscript3 filereference class

I'm trying to set up flash's FileReference class to download files from a publicly accessible web directory to a specific location on my hard drive, without having to use the browse dialogue that is automatically triggered using the download()…
mheavers
  • 29,530
  • 58
  • 194
  • 315
0
votes
1 answer

Unhanndled IO Error on fileReference.save()

I am using a filereference Object to export an excel file from my flex application. I am using fileReference.save() from Flash player 10. I am getting an error if the file i am trying to save is already open. This error is not getting handled even…
Manoj M
  • 267
  • 1
  • 10
0
votes
2 answers

FileReference.upload fails to post multipart form with additional unicode parameters properly

I am in a Flex 4.0 project attempting to POST to a Java servlet using FileReference.upload(). I am sending some additional parameters such as album name in the POST. This works fine when the characters are in the Latin1 character set. When I try to…
0
votes
1 answer

Set wav file to filereference

I'm building a little recorder in flash and I have a little problem with sending the file that is recorded to php. Is there a way to simply send it with a var of do I need to set it to a file reference, but how can I do that because the only way I…
jeroenjoosen
  • 649
  • 2
  • 10
  • 22
0
votes
1 answer

Tracing the size of my file in my AIR app + tracing size of my server file?

I've got an xml file in my AIR app and I'm trying to determine his size. Here's what I did : var file:File = File.applicationStorageDirectory.resolvePath("horaires3.xml"); trace(file.url); //path to the file trace(file.size); But I've got this…
steph45
  • 49
  • 7
0
votes
2 answers

Appcelerator: Share Screenshot of a specific view as a File cause Permission denied message

TargetSDK 23, Titanium SDK 5.4.0 Permissions set: I take a Screenshot of a view by…
0
votes
1 answer

TYPO3 cache behaviour with updated models

I have this weird behaviour from Typo3 6.2 LTS. In my extension I have a Model with a FileReference Property. This property has a vaule != 0. This value does exist in sys_file_reference table. Not the weird magic happens. If I try to access this…
PaddaelsM
  • 457
  • 2
  • 14
0
votes
1 answer

FileReference.save() documentation

Why is the save method of the FileReference class not documented in adobe livedocs? Is the documentation just outdated? Are there any more methods/properties I should know about? FileReference Documentation
Jordan
  • 1,233
  • 2
  • 12
  • 32
0
votes
1 answer

Visual Studio: referenced dll file on disk resets after adding it into resources

I want add file reference in assembly in Visual Studio to some file on the hard disk. And also i want place the file in the resources of the project. But after i added file into resources, Visual Studio replace my own file reference to resources…
Aave
  • 548
  • 1
  • 5
  • 15
0
votes
0 answers

Browse file and store on default path local disc (without browse window) in as3(AIR APP)

I need some help to store browsed file in native path of AIR APP. where I can select file by browsing from locale and then it will store to fixed path without save window.
0
votes
1 answer

How to solve this error: Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version 2.0.50727.0'

This question to which I already found the answer is posted here in case of someone else encounters it. I decided to post the Q&A here so that SO has something about this error, since I don't know if it's been here before. This occured after an…
0
votes
3 answers

how to detect "hidden files extension" (windows system ) from flash/as3 app?

i'm working on an app (flash/As3) that lets the user upload and edit an image, and then save it to the computer, using FileReference. it's posible to know if the user computer have the option "hidden file extensions" (windows system) selected? How…
mp.
  • 1
  • 1
0
votes
2 answers

flex upload file component - problems with filereference

The following code is used in a component I name FileUpload.mxml which is used in two three different sections of the flex application. private var uploadURL:URLRequest = new URLRequest; private var file:FileReference = new FileReference; private…
Angus
  • 141
  • 1
  • 2
  • 13
0
votes
2 answers

Saving a file in Flex Air

I'm trying to copy my SQLite file that is used in my Air app to user's selected directory using var fileSaveDest:FileReference = new FileReference(); fileSaveDest.save(dbWorkedFile,'Inventory.DB'); dbWorkedFile is a File dbWorkedFile =…
Pii
  • 301
  • 4
  • 15
0
votes
3 answers

Is it possible to download multiple files from a remote location to a users hard drive with AS3 FileReference?

Can I develop a Flash AS3 download swf that will let a user select a location on their hard drive to download files to and then start the download of multiple files (in the same way I can do with upload)? Or should I zip all the multiple files first…
undefined
  • 5,190
  • 11
  • 56
  • 90