Skip to content

Commit

Permalink
Fixed max file size exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaMillsUSDA-ARS authored Jun 5, 2024
1 parent 3816bcd commit 0facdd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api_core/upload_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def addFile(self, fdata, fname):
fpath.unlink()
max_mb = self.maxsize / (1024 * 1024)
raise Exception(
'Uploaded file size exceeded maximum file size of {} MB. Please submit a GCDL github issue to request a larger file size limit, or decrease your file size.'.format(max_mb)
'Uploaded file size exceeded maximum file size of {} MB.
Please submit a GeoCDL github issue at
github.com/stuckyb/gcdl/issues to request a larger
file size limit, or decrease your file size.'.format(max_mb)
)

return guid
Expand Down

0 comments on commit 0facdd7

Please sign in to comment.