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

support file url in $network.upload #74

Open
maks opened this issue Aug 3, 2017 · 0 comments
Open

support file url in $network.upload #74

maks opened this issue Aug 3, 2017 · 0 comments

Comments

@maks
Copy link
Contributor

maks commented Aug 3, 2017

Currently $network.upload uses the mostly undocumented data property to upload a data uri to S3.
Instead, as discussed with @gliechtenstein on slack, it would be better to support using a local file url as the source of the data to be uploaded, which avoids having to hold the whole file being uploaded (which potentially can be very large) in app memory.
The syntax that will be used for the property is:

"data": {
  "file_url": "..."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant