Skip to content

Commit

Permalink
docs: missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMikeladze committed Dec 3, 2023
1 parent 4182035 commit 02b342a
Showing 1 changed file with 36 additions and 16 deletions.
52 changes: 36 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ First let's create a `NextUploadConfig` that defines how to connect to a storage
**src/app/upload/config.ts**

```tsx
import { type NextUploadConfig } from 'next-upload/client';
import { NextUpload } from 'next-upload';

export const config: NextUploadConfig = {
maxSize: '1mb',
bucket: NextUpload.bucketFromEnv('my-project-name'),
Expand Down Expand Up @@ -252,22 +255,39 @@ Consider setting up a cron job to run this function on a regular basis.

### Methods

- [generatePresignedPostPolicy](#gear-generatepresignedpostpolicy)
- [namespaceFromEnv](#gear-namespacefromenv)
- [bucketFromEnv](#gear-bucketfromenv)
- [getIdFromPath](#gear-getidfrompath)
- [getUploadTypeFromPath](#gear-getuploadtypefrompath)
- [calculateExpires](#gear-calculateexpires)
- [isExpired](#gear-isexpired)
- [getBucket](#gear-getbucket)
- [getClient](#gear-getclient)
- [init](#gear-init)
- [bucketExists](#gear-bucketexists)
- [generatePresignedPostPolicy](#gear-generatepresignedpostpolicy)
- [pruneAssets](#gear-pruneassets)
- [verifyAsset](#gear-verifyasset)
- [deleteAsset](#gear-deleteasset)
- [getAsset](#gear-getasset)
- [πŸ—ƒοΈ next-upload](#️-next-upload)
- [πŸ“‘ Install](#-install)
- [πŸš€ Getting Started](#-getting-started)
- [🧳 Storage](#-storage)
- [πŸ—οΈ KeyvStore - all popular databases supported](#️-keyvstore---all-popular-databases-supported)
- [β˜”οΈ Drizzle](#️-drizzle)
- [🐘 NextUploadDrizzlePgStore](#-nextuploaddrizzlepgstore)
- [πŸ”— Getting an Asset Url](#-getting-an-asset-url)
- [πŸ—‘οΈ Deleting Assets](#️-deleting-assets)
- [πŸ”Ž Retrieving Assets](#-retrieving-assets)
- [πŸ“ Metadata](#-metadata)
- [βœ… Verifying uploads](#-verifying-uploads)
- [βœ‚οΈ Pruning assets](#️-pruning-assets)
- [:wrench: Constants](#wrench-constants)
- [:gear: defaultEnabledHandlerActions](#gear-defaultenabledhandleractions)
- [:factory: NextUpload](#factory-nextupload)
- [Methods](#methods)
- [:gear: generatePresignedPostPolicy](#gear-generatepresignedpostpolicy)
- [:gear: namespaceFromEnv](#gear-namespacefromenv)
- [:gear: bucketFromEnv](#gear-bucketfromenv)
- [:gear: getIdFromPath](#gear-getidfrompath)
- [:gear: getUploadTypeFromPath](#gear-getuploadtypefrompath)
- [:gear: calculateExpires](#gear-calculateexpires)
- [:gear: isExpired](#gear-isexpired)
- [:gear: getBucket](#gear-getbucket)
- [:gear: getClient](#gear-getclient)
- [:gear: init](#gear-init)
- [:gear: bucketExists](#gear-bucketexists)
- [:gear: generatePresignedPostPolicy](#gear-generatepresignedpostpolicy-1)
- [:gear: pruneAssets](#gear-pruneassets)
- [:gear: verifyAsset](#gear-verifyasset)
- [:gear: deleteAsset](#gear-deleteasset)
- [:gear: getAsset](#gear-getasset)

#### :gear: generatePresignedPostPolicy

Expand Down

0 comments on commit 02b342a

Please sign in to comment.