fixed Media Upload not working on some servers