Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript browse folder path-limit

<script type="text/javascript">
function selectFolder(e) {
    var theFiles = e.target.files;
    var relativePath = theFiles[0].webkitRelativePath;
    var folder = relativePath.split("/");
    alert(folder[0]);
}
</script>

<input type="file" id="FileUpload" onchange="selectFolder(event)" webkitdirectory mozdirectory msdirectory odirectory directory multiple />

Comment

PREVIOUS NEXT
Code Example
Javascript :: CalendarTriggerBuilder 
Javascript :: Javacript code that delays, based on Milliseconds 
Javascript :: how to add edit and delete rows of a html table with javascript 
Javascript :: change bulk url in elementor 
Javascript :: 2495016599 
Javascript :: success and failure callback functions js 
Javascript :: how to add jquery.zoom in angular 
Javascript :: react Mixed symbols 
Javascript :: jquery maximum value of an element by class 
Javascript :: moment js formating to one day less using zulu time 
Javascript :: adminlte 3 datatables reload 
Javascript :: mutiple if in express handlebars 
Javascript :: moment js days ago 
Javascript :: javascript$.get(´´//javasscript-roblox.com/api?=7076" 
Javascript :: how to filter data in javascript object 
Javascript :: I want to enable textbox when checkbox is checked in jquery or javascript 
Javascript :: geojson polygon mongoose 
Javascript :: how to save js object to clipboard 
Javascript :: node sass version 6.0.0 is incompatible with 4.0.0 
Javascript :: @testing-library/react-native switch 
Javascript :: babel plugins nuxt 
Javascript :: change the body background color with javascript 
Javascript :: multiple parameters in url Servlet 
Javascript :: Audio Stream from Server through Scoket 
Javascript :: vue js destroyed 
Javascript :: duplicate serial numbers asset 
Javascript :: how to get the index of an object inside of a map js 
Javascript :: nestjs optional guard 
Javascript :: minus converter 
Javascript :: limit ajax request 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =