diff --git a/usync/02.complete/05.reference/08.upload.md b/usync/02.complete/05.reference/08.upload.md index 0ccd07e..593c644 100644 --- a/usync/02.complete/05.reference/08.upload.md +++ b/usync/02.complete/05.reference/08.upload.md @@ -2,63 +2,41 @@ title: File Upload Size --- -There are several features within uSync.Complete where you can upload data, either directly or between servers. When you do this, you might be uploading large amounts of data or media files and you can encounter a [`404.13` error](https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/health-diagnostic-performance/http-404-13-website) which is 'request to large'. +There are several features within uSync.Complete where you can upload data, either directly or between servers. When you do this, you might be uploading large amounts of data or media files and you can encounter a [`404.13` error](https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/health-diagnostic-performance/http-404-13-website) which is 'request too large'. To bypass this error, you can change the allowed upload size for your application via the web.config. -However, if you don't want to make a global change of this value for all requests on your site, you can change it for specifically for uSync.Publisher and uSync.Exporter requests by using the configuration(s) below: +To do this you need to add the following to the `` section of your web.config file. -## uSync.Publisher - -All server to server uSync.Publisher requests will go via a `umbraco/uSyncReceive` end point, so the following config will change the allowed upload size for all uSync.Publisher requests. - -```xml title="web.config" - - - - - - - - - - - - - - - +```xml title="Upload request size configuration" + + + + + ``` -The config above will set the upload limit for the `Umbraco/uSyncReceive' root to 500mb, allowing for a large number of media files to be synced as part of a single publish. +Depending on other bits of configuration, your web.config might looks like this: -It will also put a placeholder in, should you wish to restrict the publisher root by IP address for security reasons. - -## uSync.Exporter - -All uSync.exporter requests go via `umbraco/backoffice/usync/uSyncNuexporterApi`, so the following config will set the upload limit for requests to that path. +:::warning +This is a sample web.config. Do not overwrite your own web.config, add only the required section. +::: ```xml title="web.config" - - - - - - - - - - - - - + + + + + + + + + + + + + + + + ``` - -This will up the upload limit for the `umbraco/backoffice/uSync/uSyncNuExporterApi' root to 500mb, allowing you to import larger 'syncpack' files directly within the uSync.Exporter dashboard.