transferwee icon indicating copy to clipboard operation
transferwee copied to clipboard

Could not upload files bigger than 60MB

Open youcmd opened this issue 2 years ago • 5 comments

the file only 68MB

python transferwee.py upload -v "audio.m4a"

Checking that all files exists
Checking for no duplicate filenames
Preparing to upload
Could not find any csrf-token
From storm_upload_token WETRANSFER_STORM_PREFLIGHT URL is: https://storm-us-east-1.wetransfer.net/api/v2/batch/preflight
From storm_upload_token WETRANSFER_STORM_BLOCK URL is: https://storm-us-east-1.wetransfer.net/api/v2/blocks
From storm_upload_token WETRANSFER_STORM_BLOCK URL is: https://storm-us-east-1.wetransfer.net/api/v2/batch
Get transfer id 84d0a30e9763ab565da61da02ae126c920230819085919
Doing preflight storm
Preparing storm block upload
Traceback (most recent call last):
  File "/content/transferwee.py", line 684, in <module>
    print(upload(args.files, args.n, args.m, args.f, args.t))
  File "/content/transferwee.py", line 588, in upload
    for f, b in zip(files, blocks["data"]["blocks"]):
KeyError: 'data'

i try add this code in 587 logger.debug(blocks)

{'ok': False, 'error': {'message': 'Block at position 0 ({:content_length=>71567915, :content_md5_hex=>"3dbb5db155ffebc8d7ce20c804ada891"}) is too large (max is 62914560)'}}

youcmd avatar Aug 19 '23 09:08 youcmd

I have adjusted the issue title according the very likely root case of the problem. I will try to reproduce it and hopefully fix it. I guess that we need to upload each file in block of 60MB or similar.

Thanks for the report and debug information!

iamleot avatar Aug 19 '23 09:08 iamleot

Any solution for this issue ?

SaadDevCs avatar Aug 30 '23 10:08 SaadDevCs

Hello! It needs fixing in several places. Basically around the code there are some XXX: comments that assumed that one single block upload was ok (but there are also some other places not marked with such comments). This assumption was wrong. I need to sit down and review and adjust all API calls related to file and block uploads.

As a possible workaround, at least on Unix split(1) can be used as a workaround.

iamleot avatar Aug 30 '23 10:08 iamleot

Please also see #70, probably the limit was changed to even lower block size.

iamleot avatar Oct 22 '23 20:10 iamleot

Updated with #76

sharevb avatar Nov 29 '23 21:11 sharevb