2

I want to upload a file onto a server so I am using HTML5 input type file element. For example

<input type="file" name="file" id="idfile" accept=".sys*" />

Now for the user, he/she selects a file from "D:\User\TestLand\abc.Sys" location

So what I want is when again a user wants to upload another file then the file selection popup comes with "D:\User\TestLand" directory instead of download directory.

This feature is already present in Chrome, but not in IE9 or above and I want to add this feature also for IE.

2
  • add more description about your question. Commented May 8, 2015 at 8:50
  • @KevinAndrid, I hope this time it is much more clear. Commented May 8, 2015 at 9:12

1 Answer 1

1

This is not something you can control from the browser unfortunately. For security the directory path is hidden from the HTML/JS code and you can't set the path with with the HTML5 File API.

Chrome's behaviour is to show the same directory that the user previously used but it looks as though IE chooses not to do this. Filing it as a bug/feature request with Microsoft is probably the only option (unless it's been already implemented the latest version).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.