fixed media upload not working with QuickPHP (FS#2531 + FS#2673)