advancefileupload
v1.1.6
Published
### 1. Files are validated by the 'mime-type' of the file. #### Allowed file types are : * JPEG = image/jpeg * PNG = image/png * GIF = image/gif * PDF = application/pdf * MSWORD = application/msword * DOC = application/vnd.openxmlformats-officedocumen
Downloads
11
Maintainers
Readme
One service to store files on local server or on AWS S3.
1. Files are validated by the 'mime-type' of the file.
Allowed file types are :
- JPEG = image/jpeg
- PNG = image/png
- GIF = image/gif
- PDF = application/pdf
- MSWORD = application/msword
- DOC = application/vnd.openxmlformats-officedocument.wordprocessingml.document
- MSEXCEL = application/vnd.ms-excel
- SHEET = application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- MPEG = video/mpeg
- XMATROSKA = video/x-matroska
- QUICKTIME = video/quicktime
- GPP = video/3gpp
- XMSVIDEO = video/x-msvideo
- MP4 = video/mp4
In order to use AWS, Credentials needs to passed in .env file with exactly same variable names.
- AWS_ACCESS_KEY = "AKXXXXXXXXXXXMQ"
- AWS_SECRET_ACCESS_KEY = "KXXXXXXXXXXXXXXXXXXXXXXXXXXl"
- AWS_REGION = "region name of the bucket."
- AWS_BUCKET_NAME = "Name of the bucket."
In order to store files on local server provide accessible path in .env file with exactly same variable name.
- LOCAL_FILE_PATH = "/uploads"