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

How to find source of faulty included file

Sencha Touch will complain about files it can't find a lot. Usually you just include the file. But sometimes the problem is a faulty include. So then you need to find where the file is being requested. Since it won't tell you where the require is…
MrFox
  • 4,852
  • 7
  • 45
  • 81
0
votes
2 answers

Typo3 7.2 add file reference to extension model

I'm using Typo 7.2 and am looking for an answer to the following question: How to add a generated File as FileReference programmatically to an extension model? First some infos regarding my achievements/tries. DONE A command controller runs over…
user3657114
  • 97
  • 1
  • 9
0
votes
2 answers

Clearing eventListeners on a FileReference object

I have a strange issue! I am trying to remove an event listener on a FileReference object by calling a function, but it seems not to be removed, and I do not understand why. Here is the code: private function…
Rudy
  • 259
  • 1
  • 13
0
votes
2 answers

flash cs4 file reference. Event.COMPLETE not called on a MAC,

I am working with a fileReference, however I'm having issues running on Safari on a MAC... EDIT: The below example also doesnt work on Safari on a…
0
votes
1 answer

Get local file while in Fullscreen mode

I have swf that expands to fullscreen: stage.displayState = StageDisplayState.FULL_SCREEN; The second I try to select local file, it's collapsing to NORMAL_SCREEN file_mask = new FileFilter("Images: (*.jpeg, *.jpg, *.png, *.JPG)","*.jpeg;…
James.G.D.
  • 29
  • 5
0
votes
1 answer

AS3: FileReference

Let's say a user is starting to upload a file to the server via FileReference. What happens to that temporary file if the user cancels the upload or closes the browser? At what point is the server script called? Is the server script (in my case,…
dcolumbus
  • 9,596
  • 26
  • 100
  • 165
0
votes
1 answer

FileReference.download() not working

I'm building a Flex app which requires me to download files. I have the following code: public function execute(event:CairngormEvent) : void { var evt:StemDownloadEvent = event as StemDownloadEvent; var req:URLRequest = new…
Lowgain
  • 3,254
  • 5
  • 27
  • 30
0
votes
0 answers

AS3: Caching files without user interaction?

I'm working on a Flash browser game that will download large amounts of external MP3s through the use of URLRequest. I want to cache those MP3s on the user's computer so they don't get re-downloaded every time the user plays the game in order to…
0
votes
1 answer

FileReference.load/browse/save wont work when deployed to mobile/android phone

FileReference actions work properly in my workspace but wont when installed in mobile/android phone. Publish Settings: Target - Air 3.2 for Android Script - AS 3.0 Air for Android Settings: Checked the following WRITE_EXTERNAL_STORAGE Here's…
0
votes
2 answers

File Not Found exception --- having issue with passing File-Reference to RMI-Client

I was trying yesterday to communicate one of my client with my system being the Remote Server and a Client system with Ubuntu 14.04. The code was about File transfer from Sever to client by passing File reference to the client and client downloading…
Am_I_Helpful
  • 18,735
  • 7
  • 49
  • 73
0
votes
1 answer

Flex: FileReference and Image unhandled IOErrorEvent

The following code shows a button that allows you to select a file (should be an image) and display it into an image component. When I select an invalid image (e.g. unsupported image type, a word document), I get the following error: "Error #2044:…
deux11
  • 17
  • 6
0
votes
2 answers

Get image path from file reference in Extbase PHP based view (TYPO3)

I use a PHP based view to return XML in an Extbase extension (TYPO3 6.2). All works great except for the path of images that needs to be included in the XML. I use the following to get the file reference: $user->addChild('event_image',…
Dennis
  • 21
  • 2
  • 3
0
votes
2 answers

How to give filepath to SUMIF() formula in VBA

=SUMIF('[filename1.xlsx]Sheet1'!$A:$A,C12,'[filename1.xlsx]Sheet1'!$Y:$Y)+SUMIF('[filename2.xlsm]Data from ABC'!$A:$A,C12,'[filename2.xlsm]Data from ABC'!$Y:$Y) The above formula is being used in filename3, however, if filename1 and filename2 are…
VJ221
  • 1
  • 1
0
votes
1 answer

Spring Relative Path File Resource In Application Context

I have a quick question about getting spring to read a file from the application context that is external to the project. I have two projects; 1) Project A 2) Project Database. Project A has the following structure; ProjectA |-src |-main …
0
votes
1 answer

Flex - Can you use the FileReference.upload() function to upload files to Sharepoint or do I have to use the SP web services?

Can you use the FileReference.upload() function to upload files to Sharepoint or do I have to use the SP web services? This is without adding your own ASP.NET Web Services, just using the built in SP Web Services. Thanks again, Mauricio