Topic: Plupload 2.1.2

More fixes (I will come up with changelog generator soon).

If you want to see your issue fixed, do not report it here, do it on - GitHub.

2 (edited by vivekvijay 2014-09-26 18:13:25)

Re: Plupload 2.1.2

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();
   }

Re: Plupload 2.1.2

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.

If you want to see your issue fixed, do not report it here, do it on - GitHub.