You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aljasser opened this issue
Jun 18, 2024
· 1 comment
Labels
feature-requestRequest a new featureStorageAn issue or a feature-request for Storage ComponentStorageManagerStorageManager related issue of feature request
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
feature-requestRequest a new featureStorageAn issue or a feature-request for Storage ComponentStorageManagerStorageManager related issue of feature request
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",
The text was updated successfully, but these errors were encountered: