Limit size of uploading data

Change-Id: I023d28c1f2af93f7325d9afdeb24e8855e575fef