Fix problem with uploading nothing and the error with the content_type