Closed hej2010 closed 9 months ago
Currently a ParseFile can only be created/uploaded using a byte[] or a File. When opening a file/document using an intent (https://developer.android.com/training/data-storage/shared/documents-files#open-file) the Uri can't always easily be converted into a File and it is often too large to store in a byte array.
byte[]
File
Add support for uploading files from a content/document Uri, e.g. with new ParseFile(name, uri, contentType).
new ParseFile(name, uri, contentType)
Write the Uri data to a temp file and upload using new ParseFile(file).
new ParseFile(file)
🎉 This change has been released in version 4.3.0
New Feature / Enhancement Checklist
Current Limitation
Currently a ParseFile can only be created/uploaded using a
byte[]
or aFile
. When opening a file/document using an intent (https://developer.android.com/training/data-storage/shared/documents-files#open-file) the Uri can't always easily be converted into a File and it is often too large to store in a byte array.Feature / Enhancement Description
Add support for uploading files from a content/document Uri, e.g. with
new ParseFile(name, uri, contentType)
.Example Use Case
Alternatives / Workarounds
Write the Uri data to a temp file and upload using
new ParseFile(file)
.3rd Party References