Developer forum

Forum » Dynamicweb 10 » Maximum file size in assets?

Maximum file size in assets?

Martin Ottesen
Martin Ottesen
Reply

Hi DW, 

I was wondering if there is a maximum file size for what you can upload into assets?

Currently im trying to upload a video on 46mb which ends up giving me an error, but a video on 27mb is allowed?

And maybe if there is a place to control this?

 

BR 

Martin


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Martin,

There is a limit for file sizes with regard to upload, but it's pretty high -- 10 GB to be exact. I don't think this is what you experience. Can you take a look at your event log, specifically the Errors list. Does that give you a clue as to what's wrong?

You don't mention which version of DW10 you're using but you could try to upgrade to 10.1.1 which was released yesterday to see if that fixes the issue. There have been some minor corrections to upload in the UI.

- Jeppe

 
Martin Ottesen
Martin Ottesen
Reply

Hi Jeppe, 

Thanks for the reply, i will report back tormorrow, because we are going to upgrade DW10 today, currently i think it is on a 10.0.27.

Martin

 
Christoffer Rosendahl Frede
Reply

did this ever get resovled ?

we have a website running version 10.8.1 and we have the same issue.

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Christoffer 

What is the size of the file you upload? And what kind of file is it? And do you have an event log entry specifying the problem?

Thanks for clarifying.

BR Nicolai

 
Christoffer Rosendahl Frede
Reply

Hi Nicolai.

i cant find any info in the logs as if the error dont exist. i get this error in the UI, when uploading MP4 files larger than 30 MB.

there is this error in the console "Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)"  /Admin/Api/Upload?createMissingDirectories=true

 

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Christoffer

The solution is hosted in our Cloud?

Please email me your solution URL - I need to check some hosting setup and see if that is the issue here.

BR Nicolai

 
Christoffer Rosendahl Frede
Reply

No this particular solution is hosted on our Azure webserver.

so we probably need to configure the mazRequestLength in the program.cs maybe ? 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Depends on your precise hosting model.

Kestrel or IIS?

If you host in IIS, then web.config might be where to set it up.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="256000000" />
      </requestFiltering>
    </security>
  </system.webServer>
</configuration>

 

 

You must be logged in to post in the forum