cvisionai / tator

Video analytics web platform
https://tator.io
GNU Affero General Public License v3.0
105 stars 34 forks source link

default chunk_size in upload_attachment is wrong #1757

Open bctcvai opened 2 months ago

bctcvai commented 2 months ago

In tator-py, the default chunk size for uploading attachments is way too big. It should be set to 10 megabytes or less.

https://github.com/cvisionai/tator-py/blob/d8460889a29e265acbb30b1006e60b66d326d835/tator/util/upload_attachment.py#L5

Will add commit to 1.3.8

bctcvai commented 2 months ago

On closer inspection, it looks like chunk_size isn't used. so the right fix it to wire it in + change the default