box / box/box-python-sdk

Fallback from chunked to regular uploader for small files

Đang mở
#569 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
459
Fork
223
Merge trung bình
8 giờ 57 phút
Pull request đã merge (30 ngày)
13

Mô tả

### Is your feature request related to a problem? Please describe.
When I run the chunked uploader on a too-small file size, I get the following:

```
boxsdk.exception.BoxAPIException: Message: File size 302023 less than minimum allowed for this API: 20000000
Status: 400
Code: file_size_too_small
```

### Describe the solution you'd like
Allow a generic upload function that falls back to the default uploading if chunked uploader refuses the file.

I realize this might be a bit high level, but considering how smooth most of the SDK is (thank you!) I feel like the folder upload (`folder.upload(path)`) is so clean and simple it would be a simple fallback for the chunked uploader.

### Describe alternatives you've considered
The alternative is a file size check, two code paths, etc.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.