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.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.