**Originated From:** [https://products.aspose.app/psd/compress/navigation/errorReportForm](https://products.aspose.app/psd/compress/navigation/errorReportForm)
**Exception:**
{"idError":"UnknownError","errorData":"{\"StatusCode\":500,\"Message\":\"RestrictionService.Exceptions.AccessRestrictionsException: Your pricing plan is LimitedBySize. Called \\u0027UploadFile\\u0027 with file length 27178201; Any method limited length is 20971520; The Upload limited length is 20971520; The Batch limited length is 104857600; The Download limited length is 104857600; \\n at RestrictionService.Services.AccessRestrictionProcessor.CheckRestrictionsAsync(PermissionsContext context) in /src/APIs/Shared/RestrictionService/Services/AccessRestrictionProcessor.cs:line 99\\n at RestrictionService.Services.AccessRestrictionProcessor.CheckRestrictionsForContextAsync(IRestrictionContext context) in /src/APIs/Shared/RestrictionService/Services/AccessRestrictionProcessor.cs:line 79\\n at AccessService.Filters.AccessEndpointFilterAsync.OnActionExecuting(EndpointFilterInvocationContext context) in /src/APIs/Shared/AccessService/Filters/AccessEndpointFilterAsync.cs:line 133\\n at AccessService.Filters.AccessEndpointFilterAsync.InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) in /src/APIs/Shared/AccessService/Filters/AccessEndpointFilterAsync.cs:line 92\\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\\u003CExecuteValueTaskOfObject\\u003Eg__ExecuteAwaited|129_0(ValueTask\\u00601 valueTask, HttpContext httpContext, JsonTypeInfo\\u00601 jsonTypeInfo)\\n at Microsoft.AspNetCore.Http.RequestDelegateFactory.\\u003C\\u003Ec__DisplayClass101_0.\\u003C\\u003CHandleRequestBodyAndCompileRequestDelegate\\u003Eb__0\\u003Ed.MoveNext()\\n--- End of stack trace from previous location ---\\n at Microsoft.AspNetCore.Routing.EndpointMiddleware.\\u003CInvoke\\u003Eg__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)\\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\\n at AuthService.Services.HeadersTransformMiddleware.Invoke(HttpContext context) in /src/APIs/Shared/AuthService/Services/HeadersTransformMiddleware.cs:line 62\\n at Shared.Api.Middlewares.CustomExceptionMiddleware.Invoke(HttpContext context) in /src/APIs/Shared/Shared.Api/Middlewares/CustomExceptionMiddleware.cs:line 54\",\"FileName\":null,\"FolderId\":null,\"DisplayOnly\":false}"}
Dear customer,
We’ve examined the error you received while trying to compress a PSD file through the Aspose PSD Compress tool:
StatusCode: 500
Message: RestrictionService.Exceptions.AccessRestrictionsException
Your pricing plan is LimitedBySize.
Called ‘UploadFile’ with file length 27 178 201 bytes
Allowed upload size for the LimitedBySize plan: 20 971 520 bytes
What’s happening
Your current plan imposes a maximum upload size of 20 MB. The file you attempted to upload is about 27 MB, which exceeds that limit, so the service rejects the request and returns a 500 error.
How to resolve
- Reduce the file size – Save the PSD with fewer layers, lower the resolution, or use a local PSD‑compression tool to bring the file under 20 MB before uploading.
- Upgrade your plan – If you regularly need to work with larger PSD files, consider switching to a plan that offers a higher upload limit (e.g., the “Batch” or “Download” limits of 100 MB).
- Split the work – If the PSD can be divided into separate files (e.g., separate groups or smart objects), compress each part individually and then recombine them after processing.
Next steps
- Try uploading a smaller PSD (≤ 20 MB) to confirm the service works for you.
- If you need assistance with reducing the file size or would like to discuss plan options, please let us know.
Feel free to reach out with any further questions or if the issue persists after adjusting the file size.