Skip to content

Commit 513134b

Browse files
authored
Getting back the error message when uploading large files. (#9469)
* Attempt at fixing. * Error message update.
1 parent ba18a1e commit 513134b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/NuGetGallery/Scripts/gallery/async-file-upload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@
193193
break;
194194
case "error":
195195
// IIS returns 404.13 (NotFound) when maxAllowedContentLength limit is exceeded.
196-
if (fullResponse === "Not Found") {
197-
displayErrors(["The package file exceeds the size limit. Please try again."]);
196+
if (fullResponse === "Not Found" || fullResponse === "Request Entity Too Large") {
197+
displayErrors(["The package file exceeds the size limit of 250 MB. Please reduce the package size and try again."]);
198198
}
199199
else {
200200
displayErrors(model.responseJSON);

0 commit comments

Comments
 (0)