RE: [flexcoders] File Uploading
Hello, The trace is just this #2038: File I/O Error. I just wonder why because the file is copied to my uploaded folder and yet it throws this error. (although i can handle it but it never get me successful my file is still in datagrid). Anny idea how to fix this? Thanks a lot. Cheers. Gregor Kiddie wrote: Post the error stack trace so we can take a look. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of freak182 Sent: 29 December 2008 03:52 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] File Uploading Hello, Thank you for your help...I just found nice flex uploading here: http://weblog.cahlan.com/files/file_uploads/FileUpload.html...they http://weblog.cahlan.com/files/file_uploads/FileUpload.html...they use php for server side ...actually it works but it gives me IOError #2038 ...im using servlet to upload file and my server is embeded jetty server run using mvn jetty:run-war. Is there any workaround with this? Thanks a lot Cheers Gregor Kiddie wrote: What's the problem you are having? Give a bit more information and we can see if we can help. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk mailto:is.helpdesk%40inps.co.uk From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of freak182 Sent: 28 December 2008 15:01 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] File Uploading Hello, Did you solve your problem in file uploading, because im having problem too with file upload in flex. Thanks a lot. Cheers. ericbichara wrote: O btw, i get no error message, just a Complete event back in flex /Eric -- View this message in context: http://www.nabble.com/File-Uploading-tp17081739p21193016.html http://www.nabble.com/File-Uploading-tp17081739p21193016.html http://www.nabble.com/File-Uploading-tp17081739p21193016.html http://www.nabble.com/File-Uploading-tp17081739p21193016.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/File-Uploading-tp17081739p21198780.html http://www.nabble.com/File-Uploading-tp17081739p21198780.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/File-Uploading-tp17081739p21214708.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] File Uploading
Post the error stack trace so we can take a look. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of freak182 Sent: 29 December 2008 03:52 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] File Uploading Hello, Thank you for your help...I just found nice flex uploading here: http://weblog.cahlan.com/files/file_uploads/FileUpload.html...they http://weblog.cahlan.com/files/file_uploads/FileUpload.html...they use php for server side ...actually it works but it gives me IOError #2038 ...im using servlet to upload file and my server is embeded jetty server run using mvn jetty:run-war. Is there any workaround with this? Thanks a lot Cheers Gregor Kiddie wrote: What's the problem you are having? Give a bit more information and we can see if we can help. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk mailto:is.helpdesk%40inps.co.uk From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of freak182 Sent: 28 December 2008 15:01 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] File Uploading Hello, Did you solve your problem in file uploading, because im having problem too with file upload in flex. Thanks a lot. Cheers. ericbichara wrote: O btw, i get no error message, just a Complete event back in flex /Eric -- View this message in context: http://www.nabble.com/File-Uploading-tp17081739p21193016.html http://www.nabble.com/File-Uploading-tp17081739p21193016.html http://www.nabble.com/File-Uploading-tp17081739p21193016.html http://www.nabble.com/File-Uploading-tp17081739p21193016.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/File-Uploading-tp17081739p21198780.html http://www.nabble.com/File-Uploading-tp17081739p21198780.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] File Uploading
Hi, The PHP file is not included in the source file. Do you know where to find it? Thank you. Pando From: freak182 eman.noll...@gmail.com To: flexcoders@yahoogroups.com Sent: Monday, December 29, 2008 11:51:46 AM Subject: RE: [flexcoders] File Uploading Hello, Thank you for your help...I just found nice flex uploading here: http://weblog. cahlan.com/ files/file_ uploads/FileUplo ad.html.. .they use php for server side ...actually it works but it gives me IOError #2038 ...im using servlet to upload file and my server is embeded jetty server run using mvn jetty:run-war. Is there any workaround with this? Thanks a lot Cheers Gregor Kiddie wrote: What's the problem you are having? Give a bit more information and we can see if we can help. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co. uk blocked::http://www.inps. co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpdesk@ inps.co.uk _ _ __ From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On Behalf Of freak182 Sent: 28 December 2008 15:01 To: flexcod...@yahoogro ups.com Subject: Re: [flexcoders] File Uploading Hello, Did you solve your problem in file uploading, because im having problem too with file upload in flex. Thanks a lot. Cheers. ericbichara wrote: O btw, i get no error message, just a Complete event back in flex /Eric -- View this message in context: http://www.nabble. com/File- Uploading- tp17081739p21193 016.html http://www.nabble. com/File- Uploading- tp17081739p21193 016.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble. com/File- Uploading- tp17081739p21198 780.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] File Uploading
I have one written in Flex/ColdFusion http://cfmu.riaforge.org Thank You Dan Vega danv...@gmail.com http://www.danvega.org On Mon, Dec 29, 2008 at 2:28 AM, Fernando Cabredo fcabred...@yahoo.comwrote: Hi, The PHP file is not included in the source file. Do you know where to find it? Thank you. Pando -- *From:* freak182 eman.noll...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Monday, December 29, 2008 11:51:46 AM *Subject:* RE: [flexcoders] File Uploading Hello, Thank you for your help...I just found nice flex uploading here: http://weblog. cahlan.com/ files/file_ uploads/FileUplo ad.html.. .theyhttp://weblog.cahlan.com/files/file_uploads/FileUpload.html...theyuse php for server side ...actually it works but it gives me IOError #2038 ...im using servlet to upload file and my server is embeded jetty server run using mvn jetty:run-war. Is there any workaround with this? Thanks a lot Cheers Gregor Kiddie wrote: What's the problem you are having? Give a bit more information and we can see if we can help. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co. uk blocked::http://www.inps. co.uk/ http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpdesk@ inps.co.uk is.helpdesk%40inps.co.uk _ _ __ From: flexcod...@yahoogro ups.com flexcoders%40yahoogroups.com[mailto:flexcod...@yahoogro ups.com flexcoders%40yahoogroups.com] On Behalf Of freak182 Sent: 28 December 2008 15:01 To: flexcod...@yahoogro ups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] File Uploading Hello, Did you solve your problem in file uploading, because im having problem too with file upload in flex. Thanks a lot. Cheers. ericbichara wrote: O btw, i get no error message, just a Complete event back in flex /Eric -- View this message in context: http://www.nabble. com/File- Uploading- tp17081739p21193 016.htmlhttp://www.nabble.com/File-Uploading-tp17081739p21193016.html http://www.nabble. com/File- Uploading- tp17081739p21193 016.htmlhttp://www.nabble.com/File-Uploading-tp17081739p21193016.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble. com/File- Uploading- tp17081739p21198 780.htmlhttp://www.nabble.com/File-Uploading-tp17081739p21198780.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] File Uploading
Hello, Did you solve your problem in file uploading, because im having problem too with file upload in flex. Thanks a lot. Cheers. ericbichara wrote: O btw, i get no error message, just a Complete event back in flex /Eric -- View this message in context: http://www.nabble.com/File-Uploading-tp17081739p21193016.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] File Uploading
What's the problem you are having? Give a bit more information and we can see if we can help. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of freak182 Sent: 28 December 2008 15:01 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] File Uploading Hello, Did you solve your problem in file uploading, because im having problem too with file upload in flex. Thanks a lot. Cheers. ericbichara wrote: O btw, i get no error message, just a Complete event back in flex /Eric -- View this message in context: http://www.nabble.com/File-Uploading-tp17081739p21193016.html http://www.nabble.com/File-Uploading-tp17081739p21193016.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] File Uploading
Hello, Thank you for your help...I just found nice flex uploading here: http://weblog.cahlan.com/files/file_uploads/FileUpload.html...they use php for server side ...actually it works but it gives me IOError #2038 ...im using servlet to upload file and my server is embeded jetty server run using mvn jetty:run-war. Is there any workaround with this? Thanks a lot Cheers Gregor Kiddie wrote: What's the problem you are having? Give a bit more information and we can see if we can help. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of freak182 Sent: 28 December 2008 15:01 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] File Uploading Hello, Did you solve your problem in file uploading, because im having problem too with file upload in flex. Thanks a lot. Cheers. ericbichara wrote: O btw, i get no error message, just a Complete event back in flex /Eric -- View this message in context: http://www.nabble.com/File-Uploading-tp17081739p21193016.html http://www.nabble.com/File-Uploading-tp17081739p21193016.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/File-Uploading-tp17081739p21198780.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] File uploading and passing string information
You should be able to verify right in actionscript, but you will have to modify the php code to request the additional details from the server. It all depends what kind of authentication script you use though, you may not need to modify any php. On Jun 30, 2008, at 2:44 PM, Sean Clark Hess wrote: I usually just check the session to see if they are authenticated or not. On Mon, Jun 30, 2008 at 1:48 PM, timgerr [EMAIL PROTECTED] wrote: Hello all, I am working on a file upload application and I have a few questions. I want to upload a file and also send some string information to varify user information. Can this be done? I am using the example from http://www.dgrigg.com/post.cfm/08/02/2007/Flex-and-Flash-file-uploading-with-return-data Here is my code (that I took) ?xml version=1.0 encoding=utf-8? !-- Derrick Grigg [EMAIL PROTECTED] http://www.dgrigg.com created on August 2, 2007 A simple file upload process with data returned from the server using the UPLOAD_COMPLETE_DATA event. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ public var file:FileReference; public function selectFile():void { file = new FileReference(); file.addEventListener(Event.SELECT, fileSelected); file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, uploadDataComplete); file.addEventListener(Event.COMPLETE, uploadComplete); file.addEventListener(IOErrorEvent.IO_ERROR, handleError); file.browse(); } public function handleError(event:IOErrorEvent):void { status_txt.text = 'ERROR: ' + event.text + '\n'; } public function fileSelected(event:Event):void { file = FileReference(event.target); file_txt.text = file.name; status_txt.text = 'upload file: '+ file.name + '\n'; var request:URLRequest = new URLRequest(); request.url = uploader.cfm; file.upload(request); } public function uploadDataComplete(event:DataEvent):void { var result:XML = new XML(event.data); status_txt.text += 'Upload Data Complete\n' status_txt.text += 'RESULT: ' + result.toString() + '\n' status_txt.text += 'STATUS: ' + result.status + '\n'; status_txt.text += 'MESSAGE: '+ result.message; } public function uploadComplete(event:Event):void { status_txt.text += 'Upload complete\n'; } ]] /mx:Script mx:VBox mx:TextInput id=file_txt/ mx:Button id=select_btn label=select click=selectFile();/ mx:TextArea id=status_txt width=400 height=200/ /mx:VBox /mx:Application Thanks, timgerr
Re: [flexcoders] File uploading and passing string information
Yes, it can be done. But please explain further exactly what you want to verify. Text fields, match to sql db? On Jun 30, 2008, at 12:48 PM, timgerr wrote: Hello all, I am working on a file upload application and I have a few questions. I want to upload a file and also send some string information to varify user information. Can this be done? I am using the example from http://www.dgrigg.com/post.cfm/08/02/2007/Flex-and-Flash-file-uploading-with-return-data Here is my code (that I took) ?xml version=1.0 encoding=utf-8? !-- Derrick Grigg [EMAIL PROTECTED] http://www.dgrigg.com created on August 2, 2007 A simple file upload process with data returned from the server using the UPLOAD_COMPLETE_DATA event. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ public var file:FileReference; public function selectFile():void { file = new FileReference(); file.addEventListener(Event.SELECT, fileSelected); file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, uploadDataComplete); file.addEventListener(Event.COMPLETE, uploadComplete); file.addEventListener(IOErrorEvent.IO_ERROR, handleError); file.browse(); } public function handleError(event:IOErrorEvent):void { status_txt.text = 'ERROR: ' + event.text + '\n'; } public function fileSelected(event:Event):void { file = FileReference(event.target); file_txt.text = file.name; status_txt.text = 'upload file: '+ file.name + '\n'; var request:URLRequest = new URLRequest(); request.url = uploader.cfm; file.upload(request); } public function uploadDataComplete(event:DataEvent):void { var result:XML = new XML(event.data); status_txt.text += 'Upload Data Complete\n' status_txt.text += 'RESULT: ' + result.toString() + '\n' status_txt.text += 'STATUS: ' + result.status + '\n'; status_txt.text += 'MESSAGE: '+ result.message; } public function uploadComplete(event:Event):void { status_txt.text += 'Upload complete\n'; } ]] /mx:Script mx:VBox mx:TextInput id=file_txt/ mx:Button id=select_btn label=select click=selectFile();/ mx:TextArea id=status_txt width=400 height=200/ /mx:VBox /mx:Application Thanks, timgerr
Re: [flexcoders] File uploading and passing string information
I usually just check the session to see if they are authenticated or not. On Mon, Jun 30, 2008 at 1:48 PM, timgerr [EMAIL PROTECTED] wrote: Hello all, I am working on a file upload application and I have a few questions. I want to upload a file and also send some string information to varify user information. Can this be done? I am using the example from http://www.dgrigg.com/post.cfm/08/02/2007/Flex-and-Flash-file-uploading-with-return-data Here is my code (that I took) ?xml version=1.0 encoding=utf-8? !-- Derrick Grigg [EMAIL PROTECTED] derrick%40dgrigg.com http://www.dgrigg.com created on August 2, 2007 A simple file upload process with data returned from the server using the UPLOAD_COMPLETE_DATA event. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ public var file:FileReference; public function selectFile():void { file = new FileReference(); file.addEventListener(Event.SELECT, fileSelected); file.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, uploadDataComplete); file.addEventListener(Event.COMPLETE, uploadComplete); file.addEventListener(IOErrorEvent.IO_ERROR, handleError); file.browse(); } public function handleError(event:IOErrorEvent):void { status_txt.text = 'ERROR: ' + event.text + '\n'; } public function fileSelected(event:Event):void { file = FileReference(event.target); file_txt.text = file.name; status_txt.text = 'upload file: '+ file.name + '\n'; var request:URLRequest = new URLRequest(); request.url = uploader.cfm; file.upload(request); } public function uploadDataComplete(event:DataEvent):void { var result:XML = new XML(event.data); status_txt.text += 'Upload Data Complete\n' status_txt.text += 'RESULT: ' + result.toString() + '\n' status_txt.text += 'STATUS: ' + result.status + '\n'; status_txt.text += 'MESSAGE: '+ result.message; } public function uploadComplete(event:Event):void { status_txt.text += 'Upload complete\n'; } ]] /mx:Script mx:VBox mx:TextInput id=file_txt/ mx:Button id=select_btn label=select click=selectFile();/ mx:TextArea id=status_txt width=400 height=200/ /mx:VBox /mx:Application Thanks, timgerr