Changed uploadDir to initialize from formData and customized further for PairIDE.