amplify-ui
amplify-ui copied to clipboard
onUploadSuccess not triggered
Before creating a new issue, please confirm:
- [X] I have searched for duplicate or closed issues and discussions.
- [X] I have tried disabling all browser extensions or using a different browser
- [X] I have tried deleting the node_modules folder and reinstalling my dependencies
- [X] I have read the guide for submitting bug reports.
On which framework/platform are you having an issue?
React
Which UI component?
Storage
How is your app built?
amplify gen2 nextjs template
What browsers are you seeing the problem on?
Chrome
Which region are you seeing the problem in?
Frankfurt
Please describe your bug.
In my app onUploadStart
is fired but onUploadSuccess
not. Upload succeeds.
What's the expected behaviour?
onUploadSuccess
should be fired.
Help us reproduce the bug!
Please check the code snippet.
Code Snippet
const onUploadStart = useCallback(() => {
dispatch(setStatus("loading"));
console.log("uploading");
}, [dispatch]);
const onUploadSuccess = useCallback(() => {
debugger;
dispatch(setStatus("idle"));
console.log("uploaded");
}, [dispatch]);
<FileUploader
isResumable
onUploadStart={onUploadStart}
onUploadSuccess={onUploadSuccess}
onUploadError={onUploadSuccess}
maxFileCount={1}
path={`applicant-photos/${today}/`}
acceptedFileTypes={["image/*"]}
/>
Console log output
No response
Additional information and screenshots
No response