Bynder / bynder-python-sdk

SDK in Python for integration with Bynder
MIT License
8 stars 12 forks source link

Fix upload chunk paths #13

Closed WouterToering closed 4 years ago

WouterToering commented 4 years ago

Current SDK keeps adding /p{CHUNK} to the paths when sending to S3 and Bynder resulting in broken uploads for very large files since you'll just end up with /p1...../p500/p501 for example. This PR fixes that.

Also changes the default polling behaviour a bit to first wait before polling, but reduced the polling time from 10s to 5s. Since files are very unlikely to be completely done with the old behaviour on the first poll, this should actually increase the chance of less waiting.