Topic: Plupload 2.1.2
More fixes (I will come up with changelog generator soon).
Plupload Forum → News → Plupload 2.1.2
More fixes (I will come up with changelog generator soon).
Hi,
I have used the latest Pluploader. On the initial app load, the file is not sent to the server. I'm getting the message: "Content Type mismatch: Requested Header indicated 11,437 bytes, but client sent 0 bytes.". But after refreshing the browser, it's working. Is this a server issue. Webservice is in .NET. Could anyone help me to fix this issue.
Following is my code. I recalling this method each time whenever I required it. I'm only using Moxie.xap, Moxie.swf', and pluploader.full.min.js. Should I need to include anything else. Please help me, really struggling.
initializeFileUploader: function(uploadURL, successFn, failureFn, controller, afterFileAdd) {
if (PAYOUT.uploader !== '')
PAYOUT.uploader.destroy();
PAYOUT.uploader = new plupload.Uploader({
runtimes: 'html5,flash,silverlight,html4',
browse_button: 'pickfiles',
container: document.getElementById('fileContainer'),
url: uploadURL,
silverlight_xap_url: 'resources/plUploader/Moxie.xap',
flash_swf_url: 'resources/plUploader/Moxie.swf',
filters: {
max_file_size: '10mb',
mime_types: [
{title: "Image files", extensions: "jpg,gif,png,xlsx"},
{title: "Zip files", extensions: "zip"}
]
},
init: {
PostInit: function() {
document.getElementById('uploadfiles').onclick = function() {
PAYOUT.uploader.start();
return false;
};
},
FilesAdded: function(up, files) {
if (afterFileAdd)
afterFileAdd(up, files, controller); },
UploadProgress: function(up, file) {
},
Error: function(up, err) {
console.log('Operation Failed');
},
BeforeUpload: function(a, b, c, d) {
},
fileUploaded: function(a, b, resp) {
successFn(resp, controller);
}
}
});
PAYOUT.uploader.init();
}
Have you solved your problem? It would be better to post about the problems in the corresponding section of the forum. For example in Core API.
Plupload Forum → News → Plupload 2.1.2
You are not logged in. Please login or register.
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_repository official extension is installed. Copyright © 2003–2009 PunBB.
Generated in 0.105 seconds (81% PHP - 19% DB) with 10 queries