File/image upload 'dataUrl' varaiable

Hi,

When using file upload component yo can use dataUrl parameter to get the body of the uploaded file but only when datatype is set to image. Otherwise it is set to null. What I’m trying to accomplish is to preview pdf/application type file - before it is uploaded to the server. Is it possible in Wappler ? Right now I’m uploading the file to the server - displaying it on the web page and when user cancel the process the file is being deleted from the server. This is working but requires couple more steps to accomplish.

Dominik

Community Page
Last updated: