Skip to content

QTWebKit/FormData.get() #10

Description

@Enum1109

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions