What property does the File Picker use to store chosen file?
Hoping someone can help me here.
I've got a WF5 form with a file picker in it, the idea is for the user to click on the file picker form element and either open the camera or select a picture already saved to the PC or mobile device (latter is more likely). I'm having issues when trying to pass the picture to a web request because I can't find the property in the chrome developers console where the file is saved in memory and the file picker does not give me the file path to use. I've set up the change event on the file picker to try and show the image that the user selects as a test
Any help is appreciated.
-
The file(s) are stored in
=$form1.state.filePicker1.value.fileswhich is an array of File objects
0 -
Thanks @Berend Veldkamp?!
I got this working at the end of the week, I ended up having to convert the image from a file into a Base64 string in the change event of the display form. This link to the November 14, 2019 tech tip made all the difference in formatting the string and making the image appear in the form!
0 -
Is there a way to get the file path?
1
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare