Skip to content

v1.7.0

Compare
Choose a tag to compare
@github-actions github-actions released this 19 Sep 23:07
· 200 commits to main since this release
cefe031

1.7.0 (2024-09-19)

🚀 New Features & Improvements

Hey everyone! We're excited to announce some great new features and improvements in this release. Check out what’s new:

  • Download Option: You can now download files with ease! We've added an onDownload callback prop to handle file downloads.
  • File Open Callback: Need custom actions when a file is opened? We’ve got you covered with the new onFileOpen callback prop.
  • Layout Change Detection: Want to track when your users switch between "list" or "grid" views? The new onLayoutChange callback prop lets you trigger custom actions whenever the layout is changed.
  • Error Handling: Added an onError callback prop to help you catch and handle any errors in the file manager, keeping things smooth and reliable.
  • Default Layout Setting: We’ve introduced the layout prop to set a default view style—choose between "list" or "grid".
  • Max File Size Limit: Control file uploads better with the new maxFileSize prop to limit the maximum upload size.
  • File Preview Option: Added the enableFilePreview (default: true) option to set whether to use the default file previewer or not.

🐛 Bug Fixes

  • Improved File Type Validation: The acceptedFileTypes prop now ensures that only allowed file types can be uploaded—even when using drag and drop. No more sneaky uploads of unsupported formats!

Enjoy the new features and happy coding! 😊