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

Own handle function #17

Closed
wants to merge 3 commits into from
Closed

Own handle function #17

wants to merge 3 commits into from

Conversation

Smip
Copy link

@Smip Smip commented Jun 6, 2018

I added ability to use own handle function.

I use this feature for upload images to server.

   modules = {
      imageDrop: {
           handler: this.upload.bind(this)
      }
    };

  upload(file, callback){
    const fb = new FormData();
    fb.append('file', file, file.name);
    this.filesService.addFile(fb).subscribe(event => {
      callback(event['response']);
    });
  }

@ariefurtado
Copy link

Can u generate a rc with this ??? I really need it :D

@Smip
Copy link
Author

Smip commented Jun 12, 2018

@ariefurtado Sorry, what do you mean by rc?

@stargazing-dino
Copy link

@kensnyder Any reason this hasn't been merged? It'd really help me at the moment

@kensnyder
Copy link
Owner

@Nolence I'm closing this PR in favor of a slightly different one. See PR #22. Please review and let me know if it will work for you before I merge it.

@kensnyder kensnyder closed this Mar 19, 2019
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.

4 participants