Esse erro geralmente é dificiu de identificar, o codigo é muito generico. Provavelmente o problema é no servidor, durante a gravação ou captura do arquivo enviado.
Jefferson Soares On Wed, Dec 9, 2009 at 6:30 PM, eltonluc <[email protected]> wrote: > > [IOErrorEvent type="ioError" bubbles=false cancelable=false > eventPhase=2 text="Error #2038"] > > estou tentando fazer upload de fotos e me aparece este erro acima, > pelo pouco que consegui achar, o problema esta no servidor, no meu > caso PHP alguem tem idéia do que seja? > > // ActionScript file > import flash.events.DataEvent; > import flash.events.Event; > import flash.events.IOErrorEvent; > import flash.events.ProgressEvent; > import flash.external.ExternalInterface; > import flash.net.FileFilter; > import flash.net.FileReference; > import flash.net.URLRequest; > import flash.net.URLRequestMethod; > import flash.system.Security; > > import mx.controls.Alert; > > Security.allowDomain('*'); > Security.allowInsecureDomain('*'); > [Bindable] > public var urls:String; > public var imagem:FileReference; > public var types:FileFilter = new FileFilter('Imagens > (*.jpg,*.jpeg)','*.jpg; *.jpeg'); > public var allTypes:Array = new Array(types); > > public function init():void{ > urls = ExternalInterface.call('obterURL'); > Alert.show(urls); > imagem = new FileReference(); > imagem.addEventListener(Event.OPEN, onOpen); > imagem.addEventListener(Event.COMPLETE, onComplete); > imagem.addEventListener(Event.SELECT, onSelect); > imagem.addEventListener(ProgressEvent.PROGRESS, onProgress); > imagem.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, > resultComplete); > imagem.addEventListener(IOErrorEvent.IO_ERROR, errorComplete); > } > public function errorComplete(e:IOErrorEvent):void{ > Alert.show(e.toString()); > } > public function resultComplete(e:DataEvent):void{ > Alert.show(e.data.toString()); > } > public function browser():void{ > imagem.browse(); > } > public function onOpen(e:Event):void{ > pb.label = '%3%%'; > } > public function onComplete(e:Event):void{ > bt.enabled = false; > } > public function onSelect(e:Event):void{ > var request:URLRequest = new URLRequest(urls); > request.method = URLRequestMethod.POST; > request.contentType = 'multipart/form-data;'; > imagem.upload(request, "image"); > } > public function onProgress(e:ProgressEvent):void{ > pb.setProgress(e.bytesLoaded, e.bytesTotal); > } > > --~--~---------~--~----~------------~-------~--~----~ > Você recebeu esta mensagem porque está inscrito na lista "flexdev" > Para enviar uma mensagem, envie um e-mail para [email protected] > Para sair da lista, envie um email em branco para > [email protected] > Mais opções estão disponíveis em http://groups.google.com/group/flexdev > -~----------~----~----~----~------~----~------~--~--- > > -- Jefferson Soares Biernastki Desenvolvimento - Novas Tecnologias 41 88426214 www.onlaboral.com.br http://pixeljef.wordpress.com -- Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para [email protected] Para sair da lista, envie um email em branco para [email protected] Mais opções estão disponíveis em http://groups.google.com/group/flexdev
