proxiedUploadTo0x0
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Your network (52.0.0.0/10) is blocked from uploading files.
usage:
import { proxiedUploadTo0x0 } from "https://esm.town/v/AIWB/proxiedUploadTo0x0"
console.log(await uploadTo0x0("test data", "filename"))
data can be a string, a TypedArray, an ArrayBuffer, or a Blob
returns a url (ie https://0x0.st/X-wB.txt
) to a file that expires after an hour