I want to upload folder, so I use webkitdirectory in the input tag like this : "<input type="file" webkitdirectory />" . If the folder structure is like "root\child\child\demo.txt", the relative path got is "child\demo.txt". But in Chrome, the relative path got is "root\child\child\demo.txt". Is this a bug ? How can I get the full relative path?