mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-19 13:19:42 +02:00
S3 uploads support (#273)
* finish s3 uploads implementation * remove unnecessary file * fix docs * update DEVELOPMENT.md * update doc * update default uploads path
This commit is contained in:
parent
55b4b3ee61
commit
8c794304b6
16 changed files with 1373 additions and 248 deletions
10
src/backend/uploads/index.ts
Normal file
10
src/backend/uploads/index.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import appConfig from '../utils/appConfig.js';
|
||||
import S3UploadsDriver from './s3.js';
|
||||
import LocalUploadsDriver from './local.js';
|
||||
|
||||
/**
|
||||
* Initialize the uploads driver based on the configuration
|
||||
*/
|
||||
export const uploadsDriver = appConfig.uploads.driver === 'local'
|
||||
? new LocalUploadsDriver(appConfig.uploads)
|
||||
: new S3UploadsDriver(appConfig.uploads);
|
Loading…
Add table
Add a link
Reference in a new issue