Skip to content

Make S3Upload accessible from react component #39

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ReactS3Uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var ReactS3Uploader = React.createClass({
},

uploadFile: function() {
new S3Upload({
this.S3Upload = new S3Upload({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's name this with a lowercase s, since uppercase is typically class names, and this would be an instance of a class.

this.s3Upload = ...

fileElement: findDOMNode(this),
signingUrl: this.props.signingUrl,
onProgress: this.props.onProgress,
Expand Down