Permalink
Browse files

Bump up limit for using multi chunk to 64MB (#109)

Parity with the Ruby SDK twitterdev/twitter-ruby-ads-sdk#135
  • Loading branch information...
juanshishido committed Mar 15, 2017
1 parent 05e2963 commit d31c3026360ba7b2e9b71f8c22a1c3df15f41204
Showing with 2 additions and 2 deletions.
  1. +2 −2 twitter_ads/http.py
@@ -198,7 +198,7 @@ class TONUpload(object):
_DEFAULT_RESOURCE = '/1.1/ton/bucket/'
_DEFAULT_BUCKET = 'ta_partner'
_DEFAULT_EXPIRE = datetime.now() + timedelta(days=10)
_MIN_FILE_SIZE = 1024 * 1024 * 1
_MIN_FILE_SIZE = 1024 * 1024 * 64

def __init__(self, client, file_path, **kwargs):
if not os.path.isfile(file_path):
@@ -263,7 +263,7 @@ def perform(self):
self.__upload_chunk(location, chunk_size, bytes, bytes_start, bytes_read)
f.close()

return location
return location.split("?")[0]

def __repr__(self):
return '<{name} object at {mem} bucket={bucket} file={file}>'.format(

0 comments on commit d31c302

Please sign in to comment.