Skip to content

Conversation

@timmcanty
Copy link

Attempt at working with #13

Would be helpful for my use case.

},

handleFiles: function(files) {
if (typeof(this.filesAreValid) === 'function') {
Copy link
Member

Choose a reason for hiding this comment

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

Can you move the block into a function _validate and call your function in _validate?

Copy link
Author

Choose a reason for hiding this comment

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

Updated 👍

@timmcanty timmcanty force-pushed the validate-with-accept-field branch from 3c1172a to c14b86d Compare April 14, 2016 20:42
}
}

if (this._invalidExtension(files)) {
Copy link
Member

Choose a reason for hiding this comment

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

@timmcanty can you add a setting validateExtension default can be true and add it to the readme`s Options section?

@fsmanuel
Copy link
Member

@timmcanty i updates ember cli and fixed the tests. can you rebase against master?

@timmcanty timmcanty force-pushed the validate-with-accept-field branch from c14b86d to 46a69a0 Compare April 19, 2016 17:40
@timmcanty
Copy link
Author

Updated

dropzone: true,
progress: true,
showProgress: false,
validateExtension: true,
Copy link
Member

Choose a reason for hiding this comment

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

validateExtensions (+s)

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

Successfully merging this pull request may close these issues.

2 participants