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

feat(input): added the ability to pass a beforeUpload function #101

Merged
merged 1 commit into from
Jul 11, 2017

Conversation

UncleDave
Copy link
Collaborator

added the ability to pass a beforeUpload function that can modify each file/url or abort entirely

fixes #59

…an modify each file/url or abort entirely

fixes #59
@UncleDave UncleDave added this to the v1.0.0 milestone Jul 10, 2017
@UncleDave UncleDave requested a review from aberezkin July 10, 2017 12:44
this.showFileTooLargeMessage = true;
continue;
}

let img = document.createElement('img');
img.src = window.URL.createObjectURL(file);
const beforeUploadResult: UploadMetadata = await this.beforeUpload({ file, url: this.url, abort: false });
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Shiny shiny.

@UncleDave UncleDave merged commit 9a883b8 into development Jul 11, 2017
@UncleDave UncleDave deleted the before-upload branch July 11, 2017 09:29
@bergben bergben mentioned this pull request Aug 16, 2017
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Perform action before file upload
2 participants