[
https://issues.apache.org/jira/browse/CB-6349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-6349.
----------------------------
Resolution: Won't Do
The plugin has been deprecated and this won't be implemented.
Read the blog post about the alternatives
https://cordova.apache.org/blog/2017/10/18/from-filetransfer-to-xhr2.html
> Return mime type in FileTransfer download
> -----------------------------------------
>
> Key: CB-6349
> URL: https://issues.apache.org/jira/browse/CB-6349
> Project: Apache Cordova
> Issue Type: Improvement
> Components: cordova-plugin-file-transfer (DEPRECATED)
> Affects Versions: 3.3.0
> Environment: Android
> Reporter: Joachim Piketz
> Priority: Major
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Return the mime type if the file is transferred using Url Connection.
> Changes in FileTransfer.java
> ...
> JSONObject fileEntry = FileUtils.getEntry(file);
> // added start
> if (connection != null)
> fileEntry.put("type", connection.getContentType());
> // added end
> result = new PluginResult(PluginResult.Status.OK, fileEntry);
> ...
> Changes in JS Function FileTransfer.prototype.download
> ...
> entry.type = result.type; // added
> entry.isDirectory = result.isDirectory;
> ...
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]