### What problem does this PR solve? feat: upload file in FileManager #345 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -85,3 +85,12 @@ export const downloadFile = ({
|
||||
downloadElement.click();
|
||||
document.body.removeChild(downloadElement);
|
||||
};
|
||||
|
||||
export const getFilePathByWebkitRelativePath = (file: File) => {
|
||||
const path = file.webkitRelativePath;
|
||||
return path;
|
||||
// if (path !== '') {
|
||||
// return path.slice(0, path.lastIndexOf('/'));
|
||||
// }
|
||||
// return path;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user