Disabling file dialog when upload is in progress