Uploading a file is as simple as calling the `set` method with the file name and the file content.
import fs from"fs";import { f0 } from"file0";// Upload a json objectawaitf0.set("hello.json",JSON.stringify(myBigObject));// Upload a text file from the file systemawaitf0.set("logs.txt",fs.readFileSync("./logs.txt"));// Upload a blobawaitf0.set("image.png",newBlob());// Upload a public fileawaitf0.set("image.png", myFile, { public:true });// Upload a file with expirationawaitf0.set("image.png", myFile, { ttl:"30d" });