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

A couple of the asset files seem to be mutually exclusive #85

Open
JFimex opened this issue Feb 29, 2016 · 0 comments
Open

A couple of the asset files seem to be mutually exclusive #85

JFimex opened this issue Feb 29, 2016 · 0 comments

Comments

@JFimex
Copy link

JFimex commented Feb 29, 2016

I am not 100% sure if this is a bug or a misuse on my part
When I include both jquery-fileupload/vendor/tmpl and jquery-fileupload/jquery.fileupload-ui
(which is done when you include just jquery-fileupload)
I get "TypeError: document.getElementById(...) is null" In the console and the fileuploader fails to load.

Recreate:

<!DOCTYPE html>
<html>
    <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<!--//= require jquery2 -->
<script src="./recreate/jquery2.self.js" ></script>

<!--//= require jquery-fileupload/vendor/jquery.ui.widget -->
<script src="./recreate/jquery.ui.widget.self.js" ></script>

<!--//= require jquery-fileupload/vendor/tmpl
<script src="./recreate/tmpl.self.js" ></script>
-->

<!--//= require jquery-fileupload/jquery.fileupload-->
<script src="./recreate/jquery.fileupload.self.js" ></script>

<!--//= require jquery-fileupload/jquery.fileupload-ui
<script src="./recreate/jquery.fileupload-ui.self.js" ></script>
-->

    <body>

    <form class="new_file_container" id="new_file_container" enctype="multipart/form-data"
        action="http://localhost:3000/file_containers" accept-charset="UTF-8" method="post">
        <input multiple="multiple" type="file" name="file_container[uploaded_file][]"
            id="file_container_uploaded_file">
    </form>
    <script>
    $(function() {
        $('#file_container_uploaded_file').fileupload({
            add: function(a,b) {
                console.log("testing");
                console.log(a);
                console.log(b);
            }
        });
    });
    </script>

</body></html>
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

1 participant