File Upload - onSecurityError

I’m having problems with the new file upload function in flash 8. When i’m testing the swf on my local machine it works fine, but when i upload it to my server, I keep getting the onSecurityError message.
I’m using the Josh Buhler upload script found here
Anybody got any surgestions?