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

FileAPI syntax error: api is not defined #1163

Closed
gkaemmer opened this issue Nov 26, 2015 · 2 comments
Closed

FileAPI syntax error: api is not defined #1163

gkaemmer opened this issue Nov 26, 2015 · 2 comments

Comments

@gkaemmer
Copy link

Seems like there's a syntax error at https://github.com/danialfarid/ng-file-upload/blob/master/src/FileAPI.js#L278. Here's the code around line 278:

        ...
        _supportInputAttr = function (attr){
            var input = document.createElement('input');
            input.setAttribute('type', "file");
            return attr in input;
        },

        _support // Why is this line here??

        /**
         * FileAPI (core object)
         */
        api = {
        ...

Gives the error: Uncaught ReferenceError: api is not defined.

Is this working for other people? Seems like it could be fixed by just deleting line 278.

@danialfarid
Copy link
Owner

I think minified version gets rid of that.

danialfarid pushed a commit that referenced this issue Nov 27, 2015
@danialfarid
Copy link
Owner

Fixed at version 10.0.3

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