Hi,
I am working behind a proxy and some of the flash uploaders out there require me to authenticate myself on the local proxy before allowing me to upload files. I have such an uploader which currently is outside my network. However after it tryes to execute file.upload(request); it dies silently without a trace of what is going on. I presume that it fails because it hasn’t requested the proxy auth. How can I show the proxy auth login pop-up. Here’s a sample of my code
ActionScript Code:
[LEFT][COLOR=#993300]var[/COLOR] request:URLRequest = [COLOR=#993300]new[/COLOR] URLRequest[COLOR=#000000]([/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]uploadScript[/COLOR][COLOR=#000000])[/COLOR];
request.[COLOR=#000000]method[/COLOR] = URLRequestMethod.[COLOR=#000000]POST[/COLOR];
request.[COLOR=#993300]data[/COLOR] = [COLOR=#993300]new[/COLOR] URLVariables[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
request.[COLOR=#993300]data[/COLOR].[COLOR=#000000]upload[/COLOR] = [COLOR=#000000]1[/COLOR];
[COLOR=#993300]var[/COLOR] file:FileReference = FileReference[COLOR=#000000]([/COLOR][COLOR=#993300]this[/COLOR].[COLOR=#000000]fileRef[/COLOR][COLOR=#000000])[/COLOR];
file.[COLOR=#000000]addEventListener[/COLOR][COLOR=#000000]([/COLOR]ProgressEvent.[COLOR=#000000]PROGRESS[/COLOR], [COLOR=#993300]this[/COLOR].[COLOR=#000000]onProgress[/COLOR][COLOR=#000000])[/COLOR];
file.[COLOR=#000000]addEventListener[/COLOR][COLOR=#000000]([/COLOR]Event.[COLOR=#000000]COMPLETE[/COLOR], [COLOR=#993300]this[/COLOR].[COLOR=#000000]onComplete[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#993300]try[/COLOR]
[COLOR=#000000]{[/COLOR]
file.[COLOR=#000000]upload[/COLOR][COLOR=#000000]([/COLOR]request[COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#993300]catch[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]error[/COLOR]:Error[COLOR=#000000])[/COLOR]
[COLOR=#000000]{[/COLOR]
ExternalInterface.[COLOR=#993300]call[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]'alert'[/COLOR], [COLOR=#993300]this[/COLOR].[COLOR=#000000]uploadFileErr[/COLOR] + file.[COLOR=#993300]name[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[/LEFT]
Thank you for your help,
Cosmin