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
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 randomizeFilename prop will probably be depracated, so that you'll have to bring your own filename generator function. This allows us to remove the uuid dependency 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.