Upload file from sftp to upload folder and use it on strapi admin

I Tried @sunnyson idea. But it fails.

Error Message: UnhandledPromiseRejectionWarning: Error: The model upload_file can’t be foun

var stats = fs.statSync(rootDir + ‘/public/uploads/’ + fileName);

strapi.query(‘upload_file’).create({
name: fileName,
alternativeText: “”,
caption: “”,
hash: uuid.v4(),//random hash
ext: “.csv”,
mime: “text/csv”,
size: stats.size,
url: “/uploads/” + fileName,
provider: “local”,
width: null,
heught: null
});