added real data size check on upload
added real data size check on upload