FileReference uploads on Linux, when you have a proxy

Submitted by Falken on
Using FileReference to upload files from Flex may not work correctly to your local machine from Linux. It appears to send the POST to the web proxy, even though your local machine is in FireFox's 'don't proxy' list, which has never heard of foo.localdomain).

The fix is to make sure you have these environment variables defined (obviously fill in some real values for the IP address) :

# env|grep prox
http_proxy=http://x.y.a.b:8080
ftp_proxy=http://x.y.a.b:8080
https_proxy=http://x.y.a.b:8080
no_proxy=localhost,.localdomain

Then launch FireFox from a console or menu in your window manager with those variables set.

On SuSE, you should define the values of these environment variables in YAST2 under network services, proxy. Other systems have their own way of doing things, or you can just edit /etc/profile (for the Bash shell) for instance.
You'll need to log out and back in again to make the change visible to a FireFox started from the KDE/GNOME menu, or you can set them in a shell window (export no_proxy=.localdomain) and launch FireFox from there.

AND ALSO set FireFox to 'use system defaults' in edit, properties, advanced, network, settings.

Sections