[
https://issues.apache.org/jira/browse/CB-10867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vladimir Kotikov resolved CB-10867.
-----------------------------------
Resolution: Not A Problem
This is by design. Docs state that success callback for {{download}} method is
passed a {{FileEntry}} object, that represents downloaded file on FS, not the
data from server's response. To get file metadata you can convert {{FileEntry}}
object to {{File}} using File plugin and read its metadata. See file plugin
source here:
https://github.com/apache/cordova-plugin-file/blob/master/www/FileEntry.js#L80
> Function "dowload()" does not report "Content-Type" of downloaded file.
> -----------------------------------------------------------------------
>
> Key: CB-10867
> URL: https://issues.apache.org/jira/browse/CB-10867
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File Transfer
> Reporter: Geraldo
> Priority: Minor
> Labels: triaged
>
> The object passed to the success callback function does not contain the type
> of the downloaded file, which is reported via "Content-Type" header in the
> response.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]