by davidkarolyi · 2y ago · 0 comments
At the moment the client package is only for js/ts devs. The package is based on HTTP api calls so it shouldn't be a huge issue porting it to other languages, but obv it's challenging without public HTTP specs. If you're into implementing a wrapper I'd be happy to assist and share those details.
About costs. The is no information, because there is no egress fee. FILE0 is built on top of R2. They don't charge for egress, so neither you pay. File size limit is 5GB soft limit. This is set as a sensible default but can be increased on demand.
The main location is in us-east, and it's replicated around the globe. If the file already exists, it is overriden. Yes, all the setup guide and API-specific tutorials are visible in your dashboard after signup.
The first step is to get to a scale where you piss off the Cloudflare sales team. FILE0 is far from that. Whenever that will be the case we can think about solutions, but this wouldn't be a good enough reason not to use them, and the free egress until we can.
So any one of my users could overwrite or delete my other users files? Seems like this is not really thought through.
If the point is just a "everyone can do everything" bucket then that isn't too hard on any of the current blob storage providers.
In the frontend you need get a file-scoped token from the server.
Server: import { f0 } from ‘file0’; const token= await f0.createToken(‘myfile.png’);
You can send this token to the client. And use it like this: import { f0 } from ‘file0’;
await f0.useToken(token).set(myfileblob);
The docs are in the dashboard only after account creation atm. Public docs on the way.