Because of this Flash Player security restriction, you have to call featureLayer.addAttachment() after a button click. For example, if you have a button letting them choose a file using a FileReference, you need to have another button click before you call addAttachment(). You can't call it directly in the fileReference's complete event handler.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.