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

as2 FileReference() issue

I have a simple swf file upload script that uploads a file as soon as user selects it. It works fine however I'm trying to pass the saved filename from the php script (simple echo "file_name.txt";) back to the swf so it can pass it back to the form…
Joe
  • 1,762
  • 9
  • 43
  • 60
0
votes
3 answers

Flex download files

I want to download a file in flex. Here is my desired flow User clicks "view" Code goes to backend and get the file as an array of bytes bytes sent from java to flex via a callback flex then opens dialog and user decides where to save the…
RNJ
  • 15,272
  • 18
  • 86
  • 131
0
votes
3 answers

Getting an error in FileReference.save method

I am currently working in Flex 3.0 I am getting an error(screen shot is given below). I am using Flash Player Version 10.0 Currently I am calling the HTTPService and in the resultHandler of that HTTPService i am getting an error in method…
Sagar Rawal
  • 1,442
  • 2
  • 12
  • 39
0
votes
0 answers

Python: pool.map_async with multiple parameters

I need some help with python pool. def read_values(entry, second): .... async_output = pool.map_async(partial(read_values, second='second'), string_array) output_array = async_output.get() The above code is working. I really want the…
ScubaInstructor
  • 493
  • 1
  • 5
  • 13
0
votes
2 answers

How to load user's file in Flash?

I would like to load a user's file right after the app is inicialized. I have this code: fll = new FileReference(); fll.browse([new FileFilter("Text *.txt", "*.txt")]); It works fine when some button is pressed, but when i just put it…
Alena
  • 179
  • 1
  • 10
0
votes
3 answers

How to download a file from server without user interaction in flex 4 or flex 4.5?

The code flow is as follows: user clicks 'download details' button on the page -> on button click handler a call to a RPC method is made using s:CallResponder -> RPC method generates and returns a URL from where to download the file -> the success…
asgl
  • 1
  • 1
  • 1
0
votes
1 answer

R file referencing not working in the context of readxl::read_excel function

What I am trying to do is go up three folders to the "New Model Setup" Folder, within that folder I am attempting to go down into the "Data Inputs" Folder and access my excel file. The file of interest is in the Folder "C:/Users/Model Dev/New Model…
STATMATT
  • 17
  • 4
0
votes
3 answers

How do i read embedded bytarray file?

I created a tile map editor for my game and it will generate a file when the user is done with the design. The file will store the assets used and other information. this is the code on how i generate the file var ba:ByteArray = new…
axsyon
  • 1
  • 1
0
votes
1 answer

How to write a file into a specific folder using Here package?

I am trying to use Here to easy file referencing and it is working okay if I write pdf or csv files without any sys date. For example; pdf(here("output/first.pdf)) works but not if I add any of the formatting text. Appreciate if you can help me how…
nmfsci
  • 5
  • 2
0
votes
2 answers

Flex file upload issue io error #2038 over HTTPS

Hi i have a flex file upload application over https it works fine on all IE browsers. Recently a client with IE9 reported a complaint that she's not able to upload files. I can see the error generated is IO Error #2038. The adobe documentation says…
Kuka
  • 13
  • 2
  • 7
0
votes
2 answers

Having trouble loading a javascript (images don't load)

I downloaded a calendar javascript. My working directory is /user. I put the script into /user/js/calendar. In my HTML located at user/, I have...
laketuna
  • 3,832
  • 14
  • 59
  • 104
0
votes
2 answers

How to send error message from servlet to flex FileReference in Flex When download

I use fileReference.download() to download files. The fileReference send request to java servlet.In servlet, some error may be checked. For example error - 'File not found'. I want to send the error to flex side. I tried lots of methods,but…
Pansy Xue
  • 25
  • 6
0
votes
1 answer

Flex FileReference doesn't work with NTLM authentication

We use the FileReference component to upload file in Flex. But if the application is deployed within an environment having NTLM authentication (Windows Integrated Authentication), the upload capability will not work, and each time a message box will…
Li.
  • 63
  • 1
  • 4
0
votes
1 answer

TYPO3 FileReference does not save the tablename on the DB. Uploading file from frontend on TYPO3

In my custom extension on TYPO3 10.4 I'm trying to upload a file (image) from the frontend. The file gets uploaded just fine, the rows on the DB seemed to be inserted just fine but there is some data missing. This is my form:
arderoma
  • 388
  • 3
  • 15
0
votes
2 answers

ActionScript FileReference upload onComplete

I am a complete beginner in Flash & Actionscript. My pet project is this: To provide a www.imageshack.com like service where people could upload single images and later anyone can view it using the generated url. So far I have gotten to upload an…
iTEgg
  • 8,212
  • 20
  • 73
  • 107