I want to import a picture based on the File path specified.(Business Central OnPrem)
On Page 346 Item Picture an ImportFromDevice prcedure was created.
I copied the exact procedure to my item Card extension page and got errors for all import,Upload and delete of files.
The type or method 'UploadFile' cannot be used for 'Extension' development

How can I import a picture from an extension? is there another way that makes use of a file path and not manual selection from user?