1
Vote

Corrupted Files

description

When I try to download a file from within the Repository - either a PDF or .docx - I either get a 'file corrupted' error (Word) or just a blank document (PDF). The files work fine from within the DNN File Manager.

file attachments

comments

sfabian wrote Nov 13, 2013 at 11:31 AM

The issue is one of compression. To solve your problem, you need to turn off compression for the folder that contains the repository files. See the forums on dnnsoftware.com. In the Repository forum you'll find all the information you need

wrote Nov 13, 2013 at 11:33 AM

vistalogix wrote Nov 13, 2013 at 7:46 PM

The only Repository post I could find referencing compression is this one: http://www.dnnsoftware.com/forums/forumid/54/threadid/336828/scope/posts/threadpage/1

In it, you state that "The Repository module uses the same code as the core File Manager to download files." That being the case, why am I able to download the files from the File Manager with no problem, but not from the Repository?

Thx.

vistalogix wrote Nov 14, 2013 at 1:48 PM

I had our hosting provider turn off compression, but it made no difference.

sfabian wrote Nov 14, 2013 at 1:48 PM

The issue is caused by compression. Making sure the repository files are not compressed will solve the issue

** Closed by sfabian 11/13/2013 4:33 AM

wrote Nov 14, 2013 at 1:48 PM

vistalogix wrote Nov 19, 2013 at 12:38 PM

I had them do it again and make sure that compression is off for the entire site - still not working. I also checked the file sizes in the SQL DB as mentioned in another article and they're fine.

sfabian wrote Nov 20, 2013 at 9:22 PM

Is this site public, can you share the URL, if not can you take a look at the header that are being returned from the server? The headers might indicate some form of compression. Are you using any DNN specific compression tools like PageBlaster, etc.?

sfabian wrote Nov 20, 2013 at 11:37 PM

looking into the issue ... what I've noticed that is different on your site vs. sites where it's working, is that in your site, the response header for the download has 'TransferEncoding=chunked' as opposed to sites that work that do not have that value and instead have a ContentLength setting in the response header

vistalogix wrote Nov 27, 2013 at 11:44 AM

Is that a hosting provider issue, or a setting in DNN, IIS, or what? That site is hosted with 3Essentials, who was recommended by Mitch Sellers because they support and have experience with DNN. Thanks again for looking into this!

vistalogix wrote Nov 27, 2013 at 3:50 PM

Here is the response I got when I asked 3Essentials about Chunked Encoding:

The value AspEnableChunkedEncoding is set to true globally for all of the sites on this host.

So this isnt a value that can be changed.

Understand that we have many DNN sites on this host, and that they are not reporting any of the issues that you are seeing.

Please reference the following MSoft kb about AspEnableChunkedEncoding.

http://support.microsoft.com/kb/278998