Magento: Can’t upload product images

If for some reason you cannot all of a sudden upload product images into Magento through the admin area I suggest you SSH into your server and navigate to the Magento directory for your website and run the following:

# chmod 777 -R media