We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Connect to S3 bucket to React File Manager using AWS Session token

Hi Syncfusion Team,

I have two question:

Question 1:

Providing awsAccessKeyId and awsSecretKeyId  to access S3 bucket is having vulnerability issue that any once can do all operation for the S3 Bucket objects.

Can we have option to connect using  awsAccessKeyIdawsSecretKeyId  and awsSessionToken to access S3 bucket, hence I will add my AWS role and policy to the session token to restrict some access issue.


Question 2:

Can I able to add one more custom column like file-size, fileModifiedDate?




1 Reply

IL Indhumathy Loganathan Syncfusion Team December 19, 2022 11:56 AM UTC

Hi Kaveen,


Greetings from Syncfusion support.


Query 1: To connect with the S3 bucket, we used awsAccessKeyId and awsSecretAccessKey with bucketName and bucketRegion in our Amazon File Service provider. In our provider, we have not used an awsSessionToken. However, you can write your own file service provider by comparing our available file service providers and integrating a session token to meet your requirements.


But you need to request and return the response in a specified format with the required parameters to perform file operations. In the File Manager component, we have handled file operations by fetching responses from the server in a defined format to work with various back-end API’s in common. Please find the default request and response parameters for file operations at the below link.


https://ej2.syncfusion.com/react/documentation/file-manager/file-operations/


Query 2: Yes, you can include a custom column in the details view by using the detailsViewSettings property. Please check the below documentation to understand how to add a custom column in the File Manager component.


https://ej2.syncfusion.com/react/documentation/file-manager/customization/#details-view-customization


Regards,

Indhumathy L


Loader.
Up arrow icon