On which framework/platform are you having an issue?
React
Which UI component?
Storage (Storage Manager)
How is your app built?
Create React App
What browsers are you seeing the problem on?
Chrome, Firefox, Microsoft Edge, Safari
Which region are you seeing the problem in?
No response
Please describe your bug.
The file prop is undefined in all callbacks (onFileRemove, onUploadStart, onUploadSuccess, onUploadError) except processFile. This inconsistency makes it difficult to manage file operations effectively.
What's the expected behaviour?
The file prop should be defined and available in all callbacks, not just processFile.
Help us reproduce the bug!
Include StorageManager
Implement callbacks for onFileRemove, onUploadStart, onUploadSuccess, and onUploadError
Observe that the file prop is undefined in these callbacks
from processFile, file: File {name: "img.png", ...}
from onUploadStart, file: undefined
from onUploadSuccess, file: undefined
from onFileRemove, file: undefined
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Storage (Storage Manager)
How is your app built?
Create React App
What browsers are you seeing the problem on?
Chrome, Firefox, Microsoft Edge, Safari
Which region are you seeing the problem in?
No response
Please describe your bug.
The file prop is undefined in all callbacks (onFileRemove, onUploadStart, onUploadSuccess, onUploadError) except processFile. This inconsistency makes it difficult to manage file operations effectively.
What's the expected behaviour?
The file prop should be defined and available in all callbacks, not just processFile.
Help us reproduce the bug!
Include StorageManager Implement callbacks for onFileRemove, onUploadStart, onUploadSuccess, and onUploadError Observe that the file prop is undefined in these callbacks
Code Snippet
Console log output
from processFile, file: File {name: "img.png", ...} from onUploadStart, file: undefined from onUploadSuccess, file: undefined from onFileRemove, file: undefined
Additional information and screenshots
Amplify Version: "@aws-amplify/ui-react": "^6.1.4", "@aws-amplify/ui-react-storage": "^3.1.3",