1.2.1 • Published 10 months ago

@nestjs-mod/files v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@nestjs-mod/files

Files module with an error filter, controller and rest-sdk for work with module from other nodejs appliaction

NPM version monthly downloads Telegram Discord

Installation

npm i --save @nestjs-mod/files

Modules

LinkCategoryDescription
FilesModulefeatureFiles module with an error filter, controller and rest-sdk for work with module from other nodejs appliaction

Modules descriptions

FilesModule

Files module with an error filter, controller and rest-sdk for work with module from other nodejs appliaction

Configuration

KeyDescriptionConstraintsDefaultValue
getFromDownloadUrlWithoutBucketNamesFunction for get from download url without bucket namesoptional--
getPresignedUrlsFunction for get presigned urlsoptional--
deleteFileFunction for delete fileoptional--
bucketsBuckets with policyoptional{"images":{"policy":{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"AWS":["*"]},"Action":["s3:PutObject","s3:AbortMultipartUpload","s3:DeleteObject","s3:GetObject"],"Resource":["arn:aws:s3:::images/*.jpg","arn:aws:s3:::images/*.jpeg","arn:aws:s3:::images/*.png","arn:aws:s3:::images/*.gif"]}],"Conditions":[["content-length-range",5242880]]},"ext":["jpg","jpeg","png","gif"]},"video":{"policy":{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"AWS":["*"]},"Action":["s3:PutObject","s3:AbortMultipartUpload","s3:DeleteObject","s3:GetObject"],"Resource":["arn:aws:s3:::video/*.mp4"]}],"Conditions":[["content-length-range",52428800]]},"ext":["mp4"]},"documents":{"policy":{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"AWS":["*"]},"Action":["s3:PutObject","s3:AbortMultipartUpload","s3:DeleteObject","s3:GetObject"],"Resource":["arn:aws:s3:::documents/*.doc","arn:aws:s3:::documents/*.docx","arn:aws:s3:::documents/*.xls","arn:aws:s3:::documents/*.md","arn:aws:s3:::documents/*.odt","arn:aws:s3:::documents/*.txt","arn:aws:s3:::documents/*.xml","arn:aws:s3:::documents/*.rtf","arn:aws:s3:::documents/*.csv"]}],"Conditions":[["content-length-range",10485760]]},"ext":["doc","docx","xls","md","odt","txt","xml","rtf","csv"]}}-

Static environments

KeyDescriptionSourcesConstraintsDefaultValue
filesDefaultUserIdDefault user idobj['filesDefaultUserId'], process.env['FILES_FILES_DEFAULT_USER_ID']optionaldefaultdefault

Static configuration

KeyDescriptionConstraintsDefaultValue

Back to Top

Links

License

MIT

1.2.1

10 months ago

1.2.0

10 months ago

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago