-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Feature Request
Given a File
, or a file URI, allow a developer to read only part of the file.
This is the equivalent of the slice
method of File
or Blob
.
Plugin
Filesystem
Description
I would like to migrate from cordova-file-plugin to this capacitor plugin, but I'm not sure I can do that as I'm not sure all my current usages are covered by this plugin.
Platform(s)
iOS & Android
Preferred Solution
Return an object that follows the File
API to allow using the same code for files that are stored on the device and also files that are added to an <input type="file" ... />
HTML element.
Alternatives
Continue using cordova file plugin :-(
Additional Context
The following code is the code I would like to migrate, there's not a lot of code there, but it would be great if I could stop using cordova plugins:
I can summarize the file API that are used in the above two services if that helps, but I think a wider context of how they are used is better.
Let me know if there's anything I can do to help out.