QtWeb
QtWeb copied to clipboard
QTWebKit/FormData.get()
I'm trying to get a zip file from a application which provides WebAPI. And before display the contents of the zip file on QTWeb, unzip the file in the memory. To realize the function above, I did by two steps as below: 1.Download the zip file to the memory. 2.Unzip the file and display it to the client browser.
At the first step, On chrome, it turns out the results expected. But on QtWebKit, errors occurred. Codes as belows: var blobData = new Blob([buffer], {type: 'application/x-zip-compressed'}); blobData.lastModifiedDate = new Date(); var formData = new FormData(); formData.append("fileOBJ",blobData,fileName); var fileOBJ = formData.get("fileOBJ"); And errors as belows: "TypeError: undefined is not a constructor (evaluating 'formData.get("fileOBJ")')" Is there any alternative method for formData.get() to solve this problem?