As a user i may need access header or other meta information sent by the server. So i added the response object as second parameter to the success callback when triggered by downloadFile(...) or sendRequest(..., { method: 'download', ... }, ...) to make sure the feature maintains backward compatibility.
The response object will look like this:
{
file: { ... }, // raw file object
data: FileEntry, // exactly the same as first parameter
headers: { ... }, // Header collection in form of key->value
status: 200, // Status Code
url: 'https://basictest.url'
}
You are now able to access the header information like this:
As a user i may need access header or other meta information sent by the server. So i added the response object as second parameter to the success callback when triggered by
downloadFile(...)
orsendRequest(..., { method: 'download', ... }, ...)
to make sure the feature maintains backward compatibility.The response object will look like this:
You are now able to access the header information like this: