I am trying to upload directory using input type file.Its Working fine in GoogleChrome and FireFox but while I am testing it in Safari browser its not working its allowing user to select single file as well. Is there any way to restrict user to select single file and allowed only to select folder in Safari browser.
here is my code where I am using:
const UploadFolder = props => {
return (
<span>
<a className="dropdown-item" href='#'>
<i className="fa fa-cloud-upload mr-2 upload-icon" aria-hidden="true"></i>Upload Files Folder</a>
<input type='file' onChange={(e) => { props.onFolderSelect(e) }}
directory="" webkitdirectory="" mozdirectory="" allowdirs="" multiple />
</span>
)
}
export default UploadFolder;
If anyone knows the solution for Safari browser please guide me.
any help will be appreciated.
Thanks in Advance,