Fix jobs file upload

* check request parameter is Multipart file or string