-
Notifications
You must be signed in to change notification settings - Fork 47
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
F/media uploader #343
F/media uploader #343
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment about expected response from signing server for S3 uploads. It's fine for us, but could be made more generic in the future.
Or actually...maybe instead of having the prop to a function that returns a url, have it be a function that returns the signed request url for uploading and the url to access the picture.
src/MediaUploader/utils.js
Outdated
} | ||
} | ||
|
||
xhr.open('PUT', data.signed_request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data
and it's properties may be too specific and need to be made more general for larger use, but for our purposes it works fine
Oooh, good idea. I was having a hard time abstracting that logic in a way that was general enough. |
@bryanjos updated! Now the prop function just needs to return an object with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I've got nothing to add. This is great work!
🎉 This PR is included in version 4.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
connects to #342
Adds a media uploader component that wraps the FileInput component and: