Try our conversational search powered by Generative AI!

Upload files > 5 MB in Optimizely CMS 12 edit mode

Vote:
 

I have a CMS12 solution where I can upload 2 MB files in assets pane, but 5MB files and larger fails. For a plain Alloy site, I have the same problem.

I have found this:

https://support.optimizely.com/hc/en-us/articles/6357702107533-Configure-maximum-upload-file-size-for-CMS-12-and-DXP-Linux-platform

Step 1 is ok, but it does not work alone. For step 2, the first options does not compile and the second options throws an exception.

Step 1:


Step 2:

Help?

#293152
Edited, Dec 14, 2022 16:55
Ted
Vote:
 

You can configure the max upload size in ConfigureServices in Startup:

services.Configure<UploadOptions>(x =>
{
    x.FileSizeLimit = 52428800; // 50MB
});
#293153
Dec 14, 2022 17:18
Tomas Hensrud Gulla - Dec 14, 2022 17:19
Thanks, Ted! You saved the day!
Ted - Dec 14, 2022 17:23
Glad I could help!
Vote:
 

You can also update appsettings.json:

{
  "EPiServer": {
    "CmsUI": {
      "Upload": {
        "FileSizeLimit": 104857600
      }
    }
  }
}

Here's the link in the documentation: https://world.optimizely.com/documentation/developer-guides/CMS/configuration/configuring-episerver-ui 

#293156
Dec 14, 2022 18:46
Tomas Hensrud Gulla - Dec 15, 2022 7:12
Thanks!
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.