-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Pooya Parsa <pooya@pi0.io>
- Loading branch information
1 parent
ce9685e
commit e049ce6
Showing
8 changed files
with
269 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
icon: qlementine-icons:cloud-16 | ||
--- | ||
|
||
# UploadThing | ||
|
||
> Store data using UploadThing. | ||
::note{to="https://uploadthing.com/"} | ||
Learn more about UploadThing. | ||
:: | ||
|
||
::warning | ||
UploadThing support is currently experimental! | ||
<br> | ||
There is a known issue that same key, if deleted cannot be used again [tracker issue](https://github.com/pingdotgg/uploadthing/issues/948). | ||
:: | ||
|
||
## Usage | ||
|
||
To use, you will need to install `uploadthing` dependency in your project: | ||
|
||
:pm-install{name="uploadthing"} | ||
|
||
```js | ||
import { createStorage } from "unstorage"; | ||
import uploadthingDriver from "unstorage/drivers/uploadthing"; | ||
|
||
const storage = createStorage({ | ||
driver: uploadthingDriver({ | ||
// token: "<your token>", // UPLOADTHING_SECRET environment variable will be used if not provided. | ||
}), | ||
}); | ||
``` | ||
|
||
**Options:** | ||
|
||
- `token`: Your UploadThing API key. Will be automatically inferred from the `UPLOADTHING_SECRET` environment variable if not provided. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.