I'm using the cordova-imagePicker to get a local URL on Android and I'm uploading it with the cordova-file-transfer plugin. I would like to switch to Fine Uploader so I can make use of the resumable feature but the only api method I can find takes a file blob. How do I create a suitable blob given the path to a file or is there an api in Fine Uploader that will take a path?
相关问题
- Should I use CSS3 media queries to deliver differe
- apk big size with ionic 4 build
- How to read file in android using PhoneGap Javascr
- Ionic start give error: There was an error with th
- InAppBrowser Allow-Navigation ONLY MY DOMAIN when
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Phonegap - Error - Keystore alias not recognized
- Can't use serve with Cordova / Phonegap hellow
- ionic - Copy/paste in input field in iOS 10 not wo
- PhoneGap iOS 7 and localStorage
- deviceready not firing in cordova
- net::ERR_CONNECTION_REFUSED ionic
- Phonegap - Missing App Store Icon 1024x1024px App
The only way to programmatically add files to Fine Uploader via the API is the
addFiles()
function. It allows you to addFile
s,<input>
s,Blob
s,BlobWrapper
objects,<canvas>
es, orCanvasWrappers
.There is no way in HTML5, currently, to create a reference to a file from a path on the local file system. My suggestion is to search for ways to create an HTML5 File object (or another compatible
addFiles
parameter) in Cordova/Phone Gap. Sorry, but I have 0 experience with those.The FileEntry.file property seems promising.