Skip to content

Commit

Permalink
Getting back the error message when uploading large files. (#9469)
Browse files Browse the repository at this point in the history
* Attempt at fixing.
* Error message update.
  • Loading branch information
agr authored Apr 17, 2023
1 parent ba18a1e commit 513134b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NuGetGallery/Scripts/gallery/async-file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
break;
case "error":
// IIS returns 404.13 (NotFound) when maxAllowedContentLength limit is exceeded.
if (fullResponse === "Not Found") {
displayErrors(["The package file exceeds the size limit. Please try again."]);
if (fullResponse === "Not Found" || fullResponse === "Request Entity Too Large") {
displayErrors(["The package file exceeds the size limit of 250 MB. Please reduce the package size and try again."]);
}
else {
displayErrors(model.responseJSON);
Expand Down

0 comments on commit 513134b

Please sign in to comment.