Fix division by error when upload max size is set to 0
When pre-signed multipart URLs are generated and the max size is 0, previously the code would error out while calculating the URLs. We now handle this case by assuming the file is the maximum number of parts. Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/259801
Showing
Please register or sign in to comment