question

JayPaterson-1460 avatar image
0 Votes"
JayPaterson-1460 asked CaseyYangMSFT-4714 commented

the request message is too big. the server does not allow messages larger than 209715200

SharePoint 2019 on premise, migrated from 2013 via 2016.
I am going around in google circles on this one and have run out of places to check!
I am trying to upload a 500mb file to a document library and get the error
the request message is too big. the server does not allow messages larger than 209715200"

I have changed the web application general settings, the web.config on the web app and the app server as well as the IIS web.config under layouts each entry now reads <httpRuntime maxRequestLength="2097152" requestLengthDiskThreshold="2097152" executionTimeout="999999" />
I have done many IISRESETs but still the error persists. The weird thing is that the test farm does not have this problem despite having the same config as production (from all I can tell). Have a missed a place? Does this need to be done in powershell.
Help please!

office-sharepoint-server-administrationoffice-sharepoint-server-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CaseyYangMSFT-4714 avatar image
0 Votes"
CaseyYangMSFT-4714 answered CaseyYangMSFT-4714 commented

Hi @JayPaterson-1460,

You could try to use PowerShell to change maximum file upload size.

 Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
     
 Function Set-MaxFileUploadSize($WebAppURL, $Size)
 {
     #Get the web applicatiin
     $WebApp =  Get-SPWebApplication | where {$_.url -eq $WebAppURL }
     
     If($WebApp)
     {
         #Increase Maxium File upload size
         $WebApp.MaximumFileSize = $Size
         $WebApp.update()
                 
         write-host "Maximum File Upload Size has been updated to $($Size) MB!" -ForegroundColor Green
     }
     else
     {
         write-host "Could not find a web application with URL: $($WebAppURL)" -ForegroundColor red
     }
  }
     
  #Call the function to set max file upload size
  Set-MaxFileUploadSize "http://yourweburl" "1024"

For Reference: Increase Maximum File Upload Size in SharePoint
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JayPaterson-1460,

I'm checking how the things are going on about this issue. Is there any progress on this issue?

0 Votes 0 ·