Rhinestic's Knick Knacks

Tuesday, November 09, 2010

Security Error when uploading files using AS3

If you've tried to use absolute pathing and are flabbergasted as to why your uploads still don't work, most probably you are getting security error.

"But I've checked that my path is correct!", you might say... Take a quick look at the URL that you have in the browser, and the URL that u put in the file reference for upload. Do you see an extra "www" in one of the URLs? There you go...

Make sure you do a redirection to the correct page first before loading the flash upload app! Or to make things simpler, use relative paths... (Then again, that has another whole set of problems that you might encounter..)

No comments :

Related Posts Plugin for WordPress, Blogger...