0

How to set default folder when open dialog Form Upload

Ex:

I want to set defualt \192.168.1.100

enter image description here

On html , I set

<input type="file" class=" form-control text-right " value="\\192.168.1.100\Sharing" accept=".csv" directory="\\192.168.1.100\Sharing" id="upload_file">

But it is not working

1 Answer 1

1

You can not do it, it is a security risk.

Also, you can never be sure that directory exists.

If you try to show path, it will be C:\\fakepath\\

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

2 Comments

I set <input type="file" class=" form-control text-right " value="\\192.168.1.100\Sharing" accept=".csv" directory="\\192.168.1.100\Sharing" id="upload_file"> But it is not working
You don’t need try it because it is impossible, I tried it before

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.