From 64d13a2b938ecd90f67f855959720c0ed3d8d685 Mon Sep 17 00:00:00 2001 From: Andrei Grigorev Date: Fri, 14 Apr 2023 16:45:19 -0700 Subject: [PATCH 1/2] Attempt at fixing. --- src/NuGetGallery/Scripts/gallery/async-file-upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NuGetGallery/Scripts/gallery/async-file-upload.js b/src/NuGetGallery/Scripts/gallery/async-file-upload.js index 62687e86c2..3089e3dee3 100644 --- a/src/NuGetGallery/Scripts/gallery/async-file-upload.js +++ b/src/NuGetGallery/Scripts/gallery/async-file-upload.js @@ -193,7 +193,7 @@ break; case "error": // IIS returns 404.13 (NotFound) when maxAllowedContentLength limit is exceeded. - if (fullResponse === "Not Found") { + if (fullResponse === "Not Found" || fullResponse === "Request Entity Too Large") { displayErrors(["The package file exceeds the size limit. Please try again."]); } else { From ad14aafc24de7cad462eace13e34ebfcbdc78905 Mon Sep 17 00:00:00 2001 From: Andrei Grigorev Date: Mon, 17 Apr 2023 14:15:07 -0700 Subject: [PATCH 2/2] Error message update. --- src/NuGetGallery/Scripts/gallery/async-file-upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NuGetGallery/Scripts/gallery/async-file-upload.js b/src/NuGetGallery/Scripts/gallery/async-file-upload.js index 3089e3dee3..3d003461cd 100644 --- a/src/NuGetGallery/Scripts/gallery/async-file-upload.js +++ b/src/NuGetGallery/Scripts/gallery/async-file-upload.js @@ -194,7 +194,7 @@ case "error": // IIS returns 404.13 (NotFound) when maxAllowedContentLength limit is exceeded. if (fullResponse === "Not Found" || fullResponse === "Request Entity Too Large") { - displayErrors(["The package file exceeds the size limit. Please try again."]); + displayErrors(["The package file exceeds the size limit of 250 MB. Please reduce the package size and try again."]); } else { displayErrors(model.responseJSON);