Proper Content-type for File Upload 

Fixes #501 , please verify that this does not break #453 again.