-
Notifications
You must be signed in to change notification settings - Fork 238
Open
Description
Here is my jsx code:
<ReactS3Uploader
getSignedUrl={props.getSignedUrl}
accept="image/*"
onProgress={onProgress}
onError={onError}
onFinish={onFinish}
uploadRequestHeaders={{
'x-amz-acl': 'public-read'
}}
contentDisposition="auto"
/>
Here is my method:
getSignedUrl = async (file, callback) => {
const { dispatch } = this.props;
const params = {
objectName: file.name,
contentType: file.type
};
const response = await dispatch(getSignedUrl(params));
console.log(response);
callback(response);
}
The above dispatch method is getting signed url from my NestJs server.
rolandin
Metadata
Metadata
Assignees
Labels
No labels
