User-initiated action requirements in Flash Player 10
플래시 플레이어 10에선, 사용자의 인터랙션(UIA, user-initiated action)이 없이 FileRefernece.browse()나 FileReference.download() 메쏘드를 실행할 수 없습니다. 그런데 플래시에서 ByteArray로 인코딩된 파일을 URLLoader API를 이용하여 업로드 하는 경우에도, 위의 제약사항이 적용됩니다.
그리고 아래 코드와 같이 dispatchEvent()로 우회하는 방법도 더 이상 사용할 수 없습니다.
In Flash Player 10, FileReference.browse() and FileReference.download() methods can not be executed without a user-initiated action(UIA). It applies to URLLoader API, when you encode a file via ByteArray and upload it to a server.
It can not be bypassed with the followind code.
Flash Player 10で、ユーザのアクション(UIA, user-initiated action)無しに、FileReference.browse()やFileReference.download()メソッドを実行出来ません。ところが、ByteArrayを使って生成したファイルを、URLLoader APIでサーバーに伝送する場合も、この制約が適用される。
また、下のコードのように、dispatchEvent()で廻る方法も効かない。
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
Related URL
- Understanding the security changes in Flash Player 10
- User-initiated action requirements in Flash Player 10
[...] 새로운 UI에 적응하려면 약간의 시간이 필요할 듯 하네요. 또한 Flash Player 10의 UIA 이슈로 인한 파일 업로드가 안되던 문제도 수정되었습니다. WordPress 2.7 – [...]
준이아빠의 생각…
Flash Player10에서는 사용자 액션 없이 파일 다운로드를 할 수 없다!!!…
[...] 가능합니다. 그로인해 이미지 저장 후 다운로드 할 때 에러가 발생하는 보안문제도 한꺼번에 해결이 되네요. Related [...]