Before uploading, check if there is enough remaining space on container remaning space = container limit - container used bytes