Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

INTRODUCTION


An eGov core application which handles uploading different kinds of files to server including images and different document types.

...

Following are the variables that needs to be populated based on the aws/azure account you are integrating with.

AWS S3:

isS3Enabled - informing the application whether AWS is available or not. 

Aws.region - region of the server

Aws.key - key provided by the aws user account

Aws.secretkey - the secret key associated with the above mentioned key


How to enable Minio SDC:

minio.url=http://minio.backbone:9000(Minio server end point)

isS3Enabled=true(Should be true)

aws.secretkey={minio_secretkey}

aws.key={minio_accesskey}

fixed.bucketname=egov-rainmaker(Minio bucket name)

minio.source=minio


How to enable AWS S3:

minio.url=https://s3.amazonaws.com

isS3Enabled=true(Should be true)

aws.secretkey={s3_secretkey}

aws.key={s3_accesskey}

fixed.bucketname=egov-rainmaker(S3 bucket name)

minio.source=minio


AZURE:

isAzureStorageEnabled - informing the application whether Azure is available or not

...

# the default format of the allowed file formats goes in a set bracket with string inside it - {"jpg","png"} - please follow the same.

allowed.fileformats.formatsmap={"jpg","jpeg","png","doc","pdf","docx"}jpg:{'image/jpg','image/jpeg'},jpeg:{'image/jpeg','image/jpg'},png:{'image/png'},pdf:{'application/pdf'},odt:{'application/vnd.oasis.opendocument.text'},ods:{'application/vnd.oasis.opendocument.spreadsheet'},docx:{'application/x-tika-msoffice','application/x-tika-ooxml','application/vnd.oasis.opendocument.text'},doc:{'application/x-tika-msoffice','application/x-tika-ooxml','application/vnd.oasis.opendocument.text'},dxf:{'text/plain'},csv:{'text/plain'},txt:{'text/plain'},xlsx:{'application/x-tika-ooxml','application/x-tika-msoffice'},xls:{'application/x-tika-ooxml','application/x-tika-msoffice'}}

The key in the map is the visible extension of the file types, the values on the right in curly braces are the respective tika types of the file. these values can be found in tika website or by passing the file through tika functions.




ACCESS:

Please use the postman collection to access apis of the filestore services

...