30 ms·
Yeah more or less the comments are correct, but let me clarify! FILE0 is looking for an environment variable, that contains your API key. This is how you authen
by davidkarolyi 2y ago
Yeah more or less the comments are correct, but let me clarify!
FILE0 is looking for an environment variable, that contains your API key. This is how you authenticate yourself from your backend.
When you want to use client uploads you can use f0.createToken('myfile.png') and send that token to the frontend, where you can also import f0 and use it like this:
f0.useToken(myTokenFromBackend).set(blob)
In the dashboard you will find a setup guide and code snippets with all this info.
- uasi 2y ago> FILE0 is looking for an environment variable, that contains your API key. So is `new S3Client({})`. It's unfair to S3 to pass redundant credentials in the sample code.