Media Library 404: No thumbnail generated

I am unable to upload files to the Media Library in my subsites. After upload, the thumbnail is not generated and when you click on the blank thumbnail the image is not there. Please advice.