How do I detect what was removed from File Picker?
I want a user to upload multiple files using the file picker (xls or zip files) and upload those as attachments to ArcGIS Server. How do I detect which file was removed if they click on the delete "x" on the file picker element? Am I missing something in the browser console that indicates this?
Thanks in advance!
Nelson
-
Hello Nelson,
In order to do this, you will need to use the change event on the File Picker. If you add a Log to this event with this output: =$form1.state.filePicker1.value , you can see an array of the files that exist at the time of them being added. If you then compared the array of files ( =$form1.state.filePicker1.value.files[x].name or .type) from a previous input with those of the current input, then you could determine which file was removed.
Thanks, Stefan
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar