Releases: fris-fruitig/react-firebase-file-uploader
Releases · fris-fruitig/react-firebase-file-uploader
Release list
Fixed reference of onProgress & onUploadSuccess
v2.4.1
v2.4.0
v2.3.0
v2.2.0
New features
- You can now provide a function as filename attribute, which will be called using the selected file as first argument to generate a filename. In the future the
randomizeFilenameprop will probably be depracated, so that you'll have to bring your own filename generator function. This allows us to remove theuuiddependency and follows the vision that the lib should be as basic, simple and generic as possible. - The uploader now naively checks for a file extension in the filename and adds the extension of the original file if none was found. A little more work might be required to make this reliable, so for now I'd recommend you to always provide an extension in the provided filename yourself.
Breaking changes
- Since the uploader will now automatically add an extension to your filename, you could experience some issues in case you're code relies on not having any filename, but this should be very unlikely.