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

Flex - Can I retrieve the ByteArray from a FileReference class using Adobe Flash Player 9?

I am trying to retrieve the ByteArray from a file selected using the FileReference class so that I can pass this to a Web Service call that I am making to Sharepoint. Is there any way I can do this using Flash Player 9 without having to upload to a…
muro
  • 97
  • 3
  • 15
0
votes
0 answers

Flash: disabling certain security sandbox problems

Is there a way to disable certain unnecessary security sandbox protections, on all platforms? I'm running Flex 3.5 and our customers are going to be very irritated if when I download a series of files using FileReference.download() they are going to…
Opux
  • 702
  • 1
  • 10
  • 30
0
votes
1 answer

FileReference.upload non asynchronous?

I'm a bit of a flex noob, but I couldn't find this question asked anywhere, or a proper workaround. I'm quite used to GET/POST and web interactions, but I'm new to working in mxml's and such. See function below. private function…
Nate Dellinger
  • 740
  • 5
  • 14
0
votes
1 answer

Access specific file in Flash with fileReference

I need to make a flash applet that automatically grabs a specific file on a user's system (iTunes XML file) and auto uploads it to my server. So far I have only been able to accomplish this with a user selecting the file, but I was wondering if…
Will M.
0
votes
1 answer

asp.net web site publish failure

I am using vs2010, asp.net website having mysql database. all i need to ask is: when i build solution,rebuild solution,build website,rebuild website. it succeeds. but when i publish it on another folder it gives me this error on almost every page of…
skzac
  • 126
  • 3
  • 10
0
votes
1 answer

Cairngorm with FileReference?

I'm looking for any ideas on how to incorporate FileReference method like Upload into a Cairngorm architecture. Specifically, I would think to fire an event with the File in it, and that's fine. But how would one then be able to listen for e.g.…
bkso
  • 5
  • 1
0
votes
1 answer

Flex FileReference - FireFox Multipart-Session bug

In Mozilla FireFox, every time you send a request to the server that has a multipartform-data (using FileReference when uploading a file) the SESSIONID value is not send in the HTTP header. That means that if the application/page/site you are…
Chepech
  • 5,258
  • 4
  • 47
  • 70
0
votes
2 answers

Selecting the right URL using FileReference (AS3) to download a file

I’m going crazy in vane trying to download files from my flash website to someone else’s hard drive. I red one or two similar challenges at this forum but they are much more complicate than mine. The files are .mp3 and I don’t want to convert them…
0
votes
1 answer

How to fileRef.download(request) programmatically

I am able to download a file from my server when a user clicks a button in the on clicked event handler, but I have to first create the file on the server with a service call. In my on success method I can then download the file for the user. When I…
user278859
  • 10,379
  • 12
  • 51
  • 74
0
votes
1 answer

How do I get the Event.Complete event in a file upload to fire in Flash Builder

The file is getting uploaded properly and my ProgessEvent.Progress method is showing 100% complete, but my Event.Complete method does not fire. Do I have to send something specific back from the server? I am simply sending back a success message. I…
user278859
  • 10,379
  • 12
  • 51
  • 74
0
votes
0 answers

flex FileReference load complete event never fired

I have an image which will be uploaded twice by flash. Besides, I'll do some resizing & compression stuff. So I have to load the data and create a BitmapData object. _fileRef.addEventListener(Event.Complete, onLoadComplete); …
Xiaoping
  • 3
  • 2
0
votes
3 answers

Extending Flex FileReference class to contain another property

I want to extend the FileReference class of Flex to contain a custom property. I want to do this because AS3 doesn't let me pass arguments to functions through event listeners, which makes me feel sad, so I need this property to exist on the event…
0
votes
1 answer

actionscript 3.0 - p2p filesharing troubles (max upload file size)

i've designed a p2p apliccation which can transfer files without a server. and everything works fine. i can transfer files between peers. but as it turns out if file size is greater than 16mb (coz the biggest file i could transfer had a size of…
SuperYegorius
  • 754
  • 6
  • 24
0
votes
1 answer

FileReference.save() is not working stable on browser as3

I would like to use FileReference.save() in 4 different place in a flash game. All 4 methods are the same (copy & paste). Locally, all 4 work perfectly however when I put the swf in browser, facebook actually, only one of them works as expected and…
0
votes
1 answer

FileReference.save() through javascript

I have a javascript function that processes data and generates a file to be downloaded. The main browsers have a native function or allow using the download attribute on the A tag as a way to save this file on the client's disk. IE 9 and 8 (which I…
Wanderson Silva
  • 1,179
  • 1
  • 17
  • 35