This PR fixes usePickFile hook this by providing default mime type if it cannot be read from file or extension.
I performed the tests for the following scenarios:
upload file with no extension (fileWithNoExtension)
upload file with no extension and dot at the end (fileWithNoExtensionAndDot.)
upload file with non existing extension (fileWithWrongExtension.fileWrongExt)
for both platforms and all providers.
Every scenario works besides OneDrive and uploading file with no extension and dot at the end. The OneDrive API returns the following message: Path (/fileWithNoExtensionAndDot.) contains invalid trailing character..
Demo
n/a
[x] Documentation is up to date to reflect these changes
Summary
This PR fixes
usePickFile
hook this by providing default mime type if it cannot be read from file or extension. I performed the tests for the following scenarios:fileWithNoExtension
)fileWithNoExtensionAndDot.
)fileWithWrongExtension.fileWrongExt
) for both platforms and all providers. Every scenario works besides OneDrive and uploading file with no extension and dot at the end. The OneDrive API returns the following message:Path (/fileWithNoExtensionAndDot.) contains invalid trailing character.
.Demo
n/a
Closes: OMHD-545