Close

Increase File Size

Charles
10 years ago
#7936 Quote
Avatar
  • 8
Can you let me know the setting I need to increase the size of file attachments for this plugin. I basically have some pdf's that are about 7 MB.

Thanks
iliyan.tanev
10 years ago
#7938 Quote
Avatar
  • 347
Hi,

Attachments plugin by itself does not restrict the file size, but the IIS server does. Its default max file size is 4 MB if you want to increase it you will have to go to the primary web config and set this two settings in it.

<system.web>
        .....
        <httpRuntime targetFramework="4.5.1" maxRequestLength="30000" />
        .....
</system.web>

and

<system.webServer>
....
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="3840000" />
      </requestFiltering>
    </security>
....
</system.webServer>

Note that if you have those items (system.web, system.webServer) already  defined (by default you do) you will have to set the security and httpRuntime (by default you have httpRuntime but without maxRequestLength) in them. If you dublicate them it will throw an error which tells you that your configuration is invalid.

Hope this helps!
Regards,
Iliyan Tanev
Nop-Templates Dev Team