Added some validation to content-upload.