Re: [flexcoders] Re: File download from server

2009-02-06 Thread Paul DSa
I had the same problem with my app. Once we shifted to flash player 10 my downloads would keep giving the error. I¹d generate a file on the user click and then automatically start the download. From what I learnt it was a security thing added in, to start the download event it requires user

[flexcoders] Re: File download from server

2009-02-06 Thread oneworld95
Same solution: Ended up adding a button dynamically on the successful response from the server that the file was ready. Then the user clicks the just added [Download Zip] button to fetch the file. - Alex C --- In flexcoders@yahoogroups.com, Paul DSa dsapaul2...@... wrote: I had the same

Re: [flexcoders] Re: File download from server

2009-01-26 Thread Mika Kiljunen
Yep I have the same problem and get the same error. But funny enough, my app works perfectly with Flash Player 9, but fails with Flash Player 10 throwing Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a

[flexcoders] Re: File download from server

2009-01-26 Thread oneworld95
For whatever reason, setting content-disposition stuff didn't work for me and was running out of time. What I ended up doing was this, - User clicks a button to generate the file on the Java side and save it to the server. - In Flex, when server returns the usual XML response saying all is OK,

[flexcoders] Re: File download from server

2009-01-21 Thread valdhor
Once you create the zip file you need to return the correct headers to the browser so that the browser will pop up the dialog box asking the user what to do. I don't use Java - I use PHP. When the user clicks a button in Flex I create a new URLRequest and then navigateToURL. The PHP script

[flexcoders] Re: File download:

2008-03-13 Thread shekharsinbox
Thanks... actually i want to klnow how to chage the type of the file.. *.ppt .jpeg etc by default downlaod window shows filename: user given name saves as type: ALlFiles(*.*) I want save as fiel to be chaged the way we can change file name at runtime --- In flexcoders@yahoogroups.com, Cato

[flexcoders] Re: File download:

2008-03-11 Thread Cato Paus
fr.download('your file url', 'your_variable this will bee the new name on the file you downloade'); --- In flexcoders@yahoogroups.com, shekharsinbox [EMAIL PROTECTED] wrote: Hi , I am using filerefrence.download() to download a file. filereference.browse allows to filter the

[flexcoders] Re: File Download

2007-10-19 Thread Doug Lowder
One way to get the Open/Save dialog is to have your Flex control link to a server-side URL that sets the Content-Disposition header to something like attachment; filename=myFile.pdf. You should also set the content type to the appropriate value based on the type of file ding downloaded. How

[flexcoders] Re: file download doesnt work?

2007-02-26 Thread TJ Downes
For anyone who may not have found the answer to this problem, I am pretty certain this will solve your problems: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=3637d5c3 TJ --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: I have the code below to

RE: [flexcoders] Re: file download doesnt work?

2006-12-13 Thread Dimitrios Gianninas
[mailto:[EMAIL PROTECTED] On Behalf Of dubreeze2001 Sent: Tuesday, December 12, 2006 10:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: file download doesnt work? Dimitrios, This should work for you: import flash.net.*; var url:String; url=http://localhost:7001/billing/servlet

Re: [flexcoders] Re: file download doesnt work?

2006-12-13 Thread Valy Sivec
@yahoogroups.com Sent: Wednesday, December 13, 2006 1:06:02 AM Subject: RE: [flexcoders] Re: file download doesnt work? Close, now my servlet gets called, but the flash player never prompts me where to save my file, so in essence, nothing is downloaded. Maybe my

RE: [flexcoders] Re: file download doesnt work?

2006-12-13 Thread leds usop
Subject: [flexcoders] Re: file download doesnt work? Dimitrios, This should work for you: import flash.net.*; var url:String; url=http://localhost:7001/billing/servlet/FileSvlt?operation= http://localhost:7001/billing/servlet/FileSvlt?operation= ; url +=DOWNLOADfileId=2; var

[flexcoders] Re: file download doesnt work?

2006-12-12 Thread Doug Lowder
So does: req.url = http://localhost:7001/billing/servlet/FileSvlt;; mean that your client and server are one and the same? Does it work if you use a DNS name or IP instead of localhost? --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Yup tried that too...

[flexcoders] Re: file download doesnt work?

2006-12-12 Thread dubreeze2001
Dimitrios, This should work for you: import flash.net.*; var url:String; url=http://localhost:7001/billing/servlet/FileSvlt?operation=;; url +=DOWNLOADfileId=2; var urlRequest:URLRequest = new URLRequest(url); sendToURL(urlRequest); Tony D --- In flexcoders@yahoogroups.com,