Missing $extension parameter for UploadBase::detectScript()

Bug: 65431
Change-Id: Iaa17425c33749148b01039311105afd8485e43fb