UploadMediaDialog hotfix