Search code examples
javascripthtmlfileapi

Can we open Windows Explorer with custom location with HTML5 File Api?


By using the below line it opens the location set by Windows Explorer. But can we open some custom location like c:\images.... for every user who clicks on browse button etc. by using HTML5 FileApi.

<input type="file" id="file" name="fileslist[]" multiple
 onchange="handleFileSelected()" />

Thanks...


Solution

  • It is impossible due to security reasons, and also due to the fact, that different operating systems has different file systems (in windows we have disks, like c:\ or d:\, in unix-like systems we have partitions, like /Users)