We are trying to upload very large (+1Gb) files to Box via the upload api using python's httplib.
So that we don't have to keep the whole file in memory, we are using code like:
CHUNK_SIZE = 1024 * 1024
data = from_file.read(CHUNK_SIZE)
while data:
http_connection.send(data)
data = from_file.read(CHUNK_SIZE)
This works fine if the file is small enough, but after 30 seconds Box times out and closes the socket, even if data is still being uploaded. Is there any way to either tell Box that the upload is coming in multiple chunks like the Dropbox chunked_upload/ endpoint, or have Box not timeout after 30 seconds?