jeudi 29 septembre 2016

Accept drop of file on HTMLLoader

I have an HTMLLoader which loads a webpage in a desktop AIR with Apache Flex project. In this webpage is a submit button to upload a file. Users mostly use drag & drop to upload files from their desktop when they use the webpage in the browser so I would like them to have this same possibility in my application.

I have a listener for a NativeDragEnter event and in this even handler I accept a drag&drop operation on the HTMLLoader. The problem is that when the file is dropped on the HTMLLoader I get a "SecurityError file" error.

How can I make sure the file is accepted? Anyone know a solution to achieve this?

Aucun commentaire:

Enregistrer un commentaire