Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
Co-authored-by: Ian <ianwallen@hotmail.com>
  • Loading branch information
tylerjmchugh and ianwallen authored Jan 7, 2025
1 parent 0c27ae1 commit b3d21f6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ public final MetadataResource putResource(ServiceContext context, String metadat
throw new InputStreamLimitExceededException(maxUploadSize, contentLength);
}

// Put the resource but limit the input stream to the max upload size plus one byte
// so we can check if the file is larger than the allowed size
// Upload the resource while ensuring the input stream does not exceed the maximum allowed size.
try (LimitedInputStream is = new LimitedInputStream(connection.getInputStream(), maxUploadSize)) {
return putResource(context, metadataUuid, filename, is, null, visibility, approved);
}
Expand Down

0 comments on commit b3d21f6

Please sign in to comment.