check disk space before upload a file