Fixing media upload.