File Picker Example for Multiple Files
Anyone have an example of a File Picker in a form where the user can choose multiple files? I am stuck figuring out the For Each portion, looping through my file list to write each file to my temp space. The output of my files is already a list, so I a, bit perplexed why I can't just loop through that. Or so it seems...
Ryan
-
Hi Ryan,
The output of the FilePicker, when "Allow Multiple Files" is checked, is a list of Geocortex.Forms.Client.FileItem objects. The FileItem has fields for FileName, FileData (byte array of the file contents), and FileDataBase64 (base64 encoded string of the file contents), which can be used in a WriteFile or CreateTempFile activity.
_img_ alt="" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907600000000NYe&feoid=Body&refid=0EM60000000DDfY"_/_img_
Does this help?
0 -
Thank you! That is exactly what I needed. I did not know about the Type Argument 'Geocortex.Forms.Client.FileItem' that should be used! I was just using the default out param from the form (System.Collections.Generic.IList<Geocortex.Forms.Client.FileItem>. Now it makes sense.... thanks again.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare