Fix for advanced file uploads