Document Corrupt intermittently

Sep 27, 2013 at 9:36 AM
First of all thanks for the uploader it works great...
I have been using this uploader for a long time and it was working great.
But unfortunately some of the documents are getting corrupted when we are uploading from this uploader.
Here is a link where i have posted the same question.
stackover flow question
We are using the same code and handler given in downloaded code.
 <object id="MultiFileUploader" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="500" height="180">
            <param name="source" value="../../Silverlight/ClientBin/mpost.SilverlightMultiFileUpload.xap" />
            <param name="onerror" value="onSilverlightError" />
             <param name="initParams" value="MaxFileSizeKB=20480,MaxUploads=1,FileFilter= ,ChunkSize=10240,CustomParams=<%=Html.Encode(Model.fGuid)%>,DefaultColor=White" />
            <param name="background" value="white" />
            <param name="onload" value="pluginLoaded" />
            <param name="minRuntimeVersion" value="4.0.50401.0" />
          <param name="autoUpgrade" value="true" />
          <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none">
              <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
          </a>
        </object>
I think when its uploading a big file or multiple files simultaneously the uploader is missing a chunk of the file and thats causing the document to corrupt.
Any thoughts to it?
suggestions are welcomed.
Thanks in advance.
Coordinator
Sep 30, 2013 at 10:18 AM
Hi,

I see you're uploading to Azure Blob storage. Are you uploading each chunk to Azure? Or do you upload the file to Azure once it's completely finished uploading on the client (preffered way)?

If you see corrupt files on Azure, check the copy on the webserver where it's uploaded from. This way you can determine if the problem is between the user and the webserver, or the webserver and Azure Blob storage.

The Silverlight Multi File Uploader only starts uploading the next chunk if the previous chunk is received correctly.
Oct 16, 2013 at 6:28 AM
Hi,

Solutions implemented :
  • For checking the pdf corrupt between the user and the webserver : Read the uploaded pdf using iTextsharp.
  • For checking the pdf corrupt between webserver and Azure Blob storage : Doing a MD5CheckSum between webserver and pdf uploaded into azure
Result :
The file is getting corrupt when its uploaded into webserver.The problem is between the user and the webserver.

Any suggestion