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

how provide callback before send images? #1

Closed
SecretKeeper opened this issue Apr 29, 2018 · 3 comments
Closed

how provide callback before send images? #1

SecretKeeper opened this issue Apr 29, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@SecretKeeper
Copy link

how can i use callbacks before sending image to server?
i wanna build a confirmation by user before send images

thanks

@fxmontigny
Copy link
Owner

Hi,

Interesting. Actually you can't do this.
A can add this option but not today sorry. Probably at the end of the week.

@fxmontigny fxmontigny added the enhancement New feature or request label Apr 30, 2018
@SecretKeeper
Copy link
Author

Nice , ok
Ill wait end od week

Thanks

@fxmontigny
Copy link
Owner

Just for you.
Release 0.1.2
https://github.com/fxmontigny/quill-image-upload/releases/tag/v0.1.2

// optional
            // add callback when a image have been chosen
            checkBeforeSend: (file, next) => {
                console.log(file);
                next(file); // go back to component and send to the server
            }

dsge added a commit to clappcom/quill-image-upload that referenced this issue Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants