Check size before uploading