I want to set file automatically loaded if exist file in local defined default path. here is the code
<form action="" method="POST" enctype="multipart/form-data">
<input type="file" name="hard_file" >
<input type="submit" name="submit" class="submit">
all you have to do is follow this post
How to set a value to a file input in HTML?
In there is a reazon for what that is not permitted:
You cannot due to security reasons.
Imagine:
<form name="foo" method="post" enctype="multipart/form-data">
<input type="file" value="c:/passwords.txt">
</form>
<script>document.foo.submit();</script>
You don't want the websites you visit to be able to do this, do you? =)