I am trying to follow an example regarding the file upload (onFileReceived)
Download and Upload Files - Ignition User Manual 8.0 - Ignition Documentation
I tried to save the uploaded file into my database but I get an error .
Is there a way to get more info about the error and what causes it ?
# Grab the file name and data fname = event.file.name fdata = event.file.getBytes() system.perspective.print(fname) # Use a query to insert the file query = "INSERT INTO files (filename, filedata) VALUES(?, CONVERT(varbinary(MAX), ?))" args = [fname, fdata] try: system.db.runPrepUpdate(query,args,"Test") #system.perspective.print(newID) except: system.perspective.print(sys.exc_info())