mr.BaoNC
mr.BaoNC

Reputation: 31

How to set default folder when open Dialog Form Upload

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

Upvotes: 0

Views: 638

Answers (1)

Hien Nguyen
Hien Nguyen

Reputation: 18975

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\\

Upvotes: 1

Related Questions