Uploading large file more than 2gb size not allowed

Juan Paulo Roque asked on December 20, 2019 20:21

Hi,

We came to a point that we have to upload files more than 2gb as attachment or in CMS.file. Looks like Kentico or ASP.NET itself does not allow it. I tried setting the maxrequestlength and maxallowedcontentlength to max but that did not work. If we switch to using Azure blob storage which we never done before, will this eliminate the validation limit ("The maximum upload size for a single file is 2gb.") in cms file upload control?

Correct Answer

Juraj Ondrus answered on December 27, 2019 10:57

Well, the limitation is on IIS side as well. Even if you configure the application for bigger files - the maxRequestLength is an Int32 so it accepts pretty big number, the IIS - .Net 4.0 has hardcoded limit to 2GB. As Dmitry mentioned, you can use media libraries but for files bigger than 2GB, you will need to copy the files to the physical media library folder at first - e.g. through FTP and then import the file into the media library.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Dmitry Bastron answered on December 23, 2019 06:11

Hi!

This seems to be a limitation of binary type in SQL server: it's 2 GB (docs). As long as these files should be convertable to be stored in the database this limitation will be there I think regardless the storage provider.

But you can try using Media Libraries for these large files. They don't seem to have this limitation.

2 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 24, 2019 06:06

I'll assume you've already done your due diligence as to why you NEED to allow users to upload 2GB files. There are so many negatives to allowing 2GB files to a website server.

1 votesVote for this answer Mark as a Correct answer

Juan Paulo Roque answered on December 27, 2019 21:14

Thank you for the answers, the client is using watchdox workspaces tool to share their SDK's files to their customers and now they want to use Kentico as a replacement hence the need to upload large files. We have no experience on implementing Azure blob storage on Kentico but if we have to use it will this resolve our issue?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.