SpEcHiDe / UploadGram

https://pypi.org/project/uploadgram/
GNU Affero General Public License v3.0
102 stars 24 forks source link

Files of exactly 2 GB in size are not uploaded #15

Closed tissole closed 2 years ago

tissole commented 2 years ago

I found that the culprit is in line 60 from upload.py elif os.stat(current_name).st_size < TG_MAX_FILE_SIZE: It should be elif os.stat(current_name).st_size <= TG_MAX_FILE_SIZE:

SpEcHiDe commented 2 years ago

Can you do a pr, please?

tissole commented 2 years ago

Never done it, I don't know how.