简体   繁体   中英

Is there a way to set the PrimeNG p-fileUpload component to open in a custom folder?

I'm using the PrimeNG p-fileUpload component to upload some files. When I press the select file button, I want the file explorer dialog to open in a custom default folder, for example Desktop, or Videos etc. Is there a way I can do that?

You can't do that, because security reasons.
And How you can be sure that the directory that you want exist in all computers?

You can't do it even on file input for regular html, it is forbidden for security reason as clients have different operating systems for instance desktop directory in windows doesn't exist in Mac Os

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM