Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: increase max upload size #2552

Merged
merged 4 commits into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions path-compression/path_compresssion.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
kurtosisDataTransferLimit = 100 * 1024 * 1024 // 100 MB
kurtosisDataTransferLimit = 2000 * 1024 * 1024 // ~2 GB
tempCompressionDirPattern = "upload-compression-cache-"
compressionExtension = ".tgz"
defaultTmpDir = ""
Expand Down Expand Up @@ -94,8 +94,8 @@ func CompressPathToFile(pathToCompress string, enforceMaxFileSizeLimit bool) (st

if enforceMaxFileSizeLimit && compressedFileSize >= kurtosisDataTransferLimit {
return "", 0, nil, stacktrace.NewError(
"The files you are trying to upload, which are now compressed, exceed or reach 100mb. " +
"Manipulation (i.e. uploads or downloads) of files larger than 100mb is currently disallowed in Kurtosis.")
"The files you are trying to upload, which are now compressed, exceed or reach 2 GB. " +
"Manipulation (i.e. uploads or downloads) of files larger than 2 GB is currently disallowed in Kurtosis.")
}

return compressedFilePath, compressedFileSize, compressedFileContentMd5.Sum(nil), nil
Expand Down
Loading