开发者

Deployed Applet Suddenly Not Working

开发者 https://www.devze.com 2023-02-23 15:03 出处:网络
I put together an applet that uploads images via as3httpclientlib to a servlet. The applet works fine in debug mode (through flash builder) and until today it worked when deployed.

I put together an applet that uploads images via as3httpclientlib to a servlet. The applet works fine in debug mode (through flash builder) and until today it worked when deployed.

From the servlet logs, it appears the servlet never r开发者_StackOverflow中文版eceives the image(s) byte stream, therefore my hunch is the applet is not posting the multipart data.

Can anyone suggest what I should do next to find the cause of the problem?


I suppose you ran into problem described here:

In Flash Player 10 and later, if you use a multipart Content-Type (for example "multipart/form-data") that contains an upload (indicated by a "filename" parameter in a "content-disposition" header within the POST body), the POST operation is subject to the security rules applied to uploads:

  1. The POST operation must be performed in response to a user-initiated action, such as a mouse click or key press.
  2. If the POST operation is cross-domain (the POST target is not on the same server as the SWF file that is sending the POST request), the target server must provide a URL policy file that permits cross-domain access.

So I think you should run your application using debugger and check Flex client logs for exceptions described above.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号