parameterized upload script