mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
feat(windows)!: Drop Windows support (#346)
This commit is contained in:
@@ -59,7 +59,6 @@ cordova plugin add cordova-plugin-file-transfer
|
||||
- Android
|
||||
- Browser
|
||||
- iOS
|
||||
- Windows
|
||||
|
||||
# FileTransfer
|
||||
|
||||
@@ -203,12 +202,6 @@ A `FileUploadResult` object is passed to the success callback of the
|
||||
|
||||
- __withCredentials__: _boolean_ that tells the browser to set the withCredentials flag on the XMLHttpRequest
|
||||
|
||||
### Windows Quirks
|
||||
|
||||
- An option parameter with empty/null value is excluded in the upload operation due to the Windows API design.
|
||||
|
||||
- __chunkedMode__ is not supported and all uploads are set to non-chunked mode.
|
||||
|
||||
## download
|
||||
|
||||
__Parameters__:
|
||||
@@ -319,10 +312,6 @@ __exception__ is never defined.
|
||||
- 4 = `FileTransferError.ABORT_ERR`
|
||||
- 5 = `FileTransferError.NOT_MODIFIED_ERR`
|
||||
|
||||
## Windows Quirks
|
||||
|
||||
- The plugin implementation is based on [BackgroundDownloader](https://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.backgroundtransfer.backgrounddownloader.aspx)/[BackgroundUploader](https://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.backgroundtransfer.backgrounduploader.aspx), which entails the latency issues on Windows devices (creation/starting of an operation can take up to a few seconds). You can use XHR or [HttpClient](https://msdn.microsoft.com/en-us/library/windows/apps/windows.web.http.httpclient.aspx) as a quicker alternative for small downloads.
|
||||
|
||||
## Backwards Compatibility Notes
|
||||
|
||||
Previous versions of this plugin would only accept device-absolute-file-paths as the source for uploads, or as the target for downloads. These paths would typically be of the form:
|
||||
|
||||
Reference in New Issue
Block a user