diff --git a/exporter/export.py b/exporter/export.py index 6f4f508..b351546 100644 --- a/exporter/export.py +++ b/exporter/export.py @@ -79,7 +79,7 @@ async def upload_to_r2(source_file: Union[str, Path], destination_file: str, buc return await bucket.upload_fileobj(f, destination_file) -def trim_filename(filename, max_length=200): +def trim_filename(filename, max_length=230): extension = os.path.splitext(filename)[1] max_length -= len(extension) if len(filename) > max_length: