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

Adding items to formData onAfterAddingFile does not work #345

Open
tryncatch opened this issue Jan 20, 2015 · 3 comments
Open

Adding items to formData onAfterAddingFile does not work #345

tryncatch opened this issue Jan 20, 2015 · 3 comments

Comments

@tryncatch
Copy link

Hi, I'm not sure we're using the component correctly however I'd expect to be able to add items programatically after the component has been instantiated. Even I'm able to have this to work on component creation time, after the component has been created the item is not appended to the form hence not being sent to the server.

¿Is this the expected behavior or a bug? ¿Is it possible to do what I'm trying to do (create the component and attach a function that appends new items to the form before the file is sent to the server)?

Thanks!

@rafaelbecks
Copy link

Hey tryncatch! I have this problem too, if you solved it please share the answer I tried to do the following but it did'nt work

    //After initialize uploader
      $scope.someFuction = fuction(data) {
               // Call to services and stuff
               $scope.uploader.formData.push({'id':data.data.id});
               $scope.uploader.uploadAll()
      };

. Sorry my engish btw.

@tryncatch
Copy link
Author

Hi Rafael,
Maybe this can help you out:
#211
#97

Good luck!

@rafaelbecks
Copy link

Awesome. It's working now. Thanks!

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

No branches or pull requests

2 participants