Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for uploading files from a content Uri #1206

Closed
3 tasks done
hej2010 opened this issue Feb 15, 2024 · 2 comments · Fixed by #1207
Closed
3 tasks done

Add support for uploading files from a content Uri #1206

hej2010 opened this issue Feb 15, 2024 · 2 comments · Fixed by #1207
Labels
state:released Released as stable version type:feature New feature or improvement of existing feature

Comments

@hej2010
Copy link
Contributor

hej2010 commented Feb 15, 2024

New Feature / Enhancement Checklist

Current Limitation

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.

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

Copy link

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza mtrezza added the type:feature New feature or improvement of existing feature label Feb 15, 2024
@parseplatformorg
Copy link

🎉 This change has been released in version 4.3.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version type:feature New feature or improvement of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants