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

uploadOptionsBeforeSubmit doesn't work as expected #89

Open
ducky427 opened this issue Dec 10, 2013 · 1 comment
Open

uploadOptionsBeforeSubmit doesn't work as expected #89

ducky427 opened this issue Dec 10, 2013 · 1 comment

Comments

@ducky427
Copy link

Hi,
(I am new to angularjs. So please let me apologize if its a stupid question).

I am trying to use this library and I wanted to use the 'uploadOptionsBeforeSubmit' option. But I noticed that it doesn't work. Further it seems that the test written for it don't run automatically and when I tried to run them, they fail.

Additionally, the documentation refers to this option as 'ng-upload-before-submit' while the code refers to it as 'upload-options-before-submit'.

Am I looking at the right thing?

cheers

@kencaron
Copy link

I simply use

<form enctype="multipart/form-data" action="{{uploadAction}}" ng-upload="complete(contents, section)" upload-options-before-submit="precheck()">

Where precheck returns true or false

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