corelchen / ajax-upload

Automatically exported from code.google.com/p/ajax-upload
0 stars 0 forks source link

Does not work #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Trying in Firefox 33
2. Trying in Google Chrome 39

Does not work at all,
None uploads and server script never called

Version: ajaxupload-v1.2.js

Original issue reported on code.google.com by beoti...@gmail.com on 22 Nov 2014 at 6:45

GoogleCodeExporter commented 9 years ago
Made a single page for testing only with just the code lines in the example;
Script doesn't call the 'open file' action, doesn't do anything.
No idea @ solution.
--HTML CODE--

<html>
<head>
<title>Uploader</title>
<script type="text/javascript" src="jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="ajaxupload.min.js"></script>
<script type="text/javascript">
$("#UploadButton").ajaxUpload({
    url : "upload.php",
    name: "file",
    onSubmit: function() {
        $('#InfoBox').html('Uploading ... ');
    },
    onComplete: function(result) {
        $('#InfoBox').html('File uploaded with result' + result);
    }
});
</script>
<styles>
</styles>
</head>
<body>

<a class="UploadButton" id="UploadButton">UploadFile</a>
<div id="InfoBox"></div>
</body>
</html>

Original comment by gustavos...@gmail.com on 16 Dec 2014 at 9:13