import { restash } from "@/lib/restash";const file = new File(["test"], "test.txt", { type: "text/plain",});const result = await restash.files.upload(file);// do something with the uploaded fileconst { url } = result;
The upload method accepts the following parameters: