korayxxx / in-spirit

Automatically exported from code.google.com/p/in-spirit
0 stars 0 forks source link

Loading fails if not directly dispatched from mouse event #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In your test .FLA, remove the Mouse.CLICK listener and instead trigger
the upload instantly
2. Test the movie within Flash - it works
3. Test in a browser - nothing happens (I don't get a security error either)

This seems to be a problem with URLLoader and the way the content-type is
set. I replaced line 281:

urlRequest.contentType = 'multipart/form-data; boundary=' + getBoundary();

with

urlRequest.requestHeaders.push(new URLRequestHeader('Content-type',
'multipart/form-data; boundary=' + getBoundary()));

and the upload will proceed immediately.

Original issue reported on code.google.com by gbrad...@rocket.co.uk on 22 Sep 2009 at 8:00

GoogleCodeExporter commented 8 years ago
I had javascript initiate my upload and I did get this error:
*** Security Sandbox Violation ***
SecurityError: Error #2176

But since I applied the change suggested here the upload works fine and no 
security errors get thrown.

Original comment by jakehil...@gmail.com on 20 Oct 2009 at 4:31

GoogleCodeExporter commented 8 years ago
I'm also had error: 
*** Security Sandbox Violation ***
SecurityError: Error #2176

After replace line 281(like "gbrad...@rocket.co.uk") in MultipartURLLoader this 
problem 
has been resolved.

Original comment by khomutet...@gmail.com on 23 Feb 2010 at 8:24

GoogleCodeExporter commented 8 years ago

Original comment by zatepya...@gmail.com on 23 Feb 2010 at 10:53

GoogleCodeExporter commented 8 years ago
I'm having this problem in Firefox on a Mac only, but this line is as described 
so that can't be the fix.  Anyone know?

Original comment by aims.lon...@gmail.com on 16 Apr 2012 at 10:54