0

We’re using PrimeFaces (mode="advanced") File upload component to perform server side file uploads.

Is there any way to set default path (import file path ) on choose button ? Like C:\Files\ enter image description here

Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
DevD
  • 55
  • 1
  • 15
  • Possible duplicate of [Remember and Repopulate File Input](http://stackoverflow.com/questions/20537696/remember-and-repopulate-file-input) – Kukeltje May 05 '17 at 13:07

1 Answers1

1

In short, you can't.

In long format: From my understanding, your question is related to the to <input type="file" /> topic and the browser only can remembered the last path you used for uploading something, which is our situation (photo uploading) is more than sufficient.

Plus, when I faced your issue, I reached BalusC's answer which I wholeheartedly agree. As an user, you usually want to avoid having a website knowing your folder hierarchy.

If you wish to read more about this, there is a wonderful answer here

Community
  • 1
  • 1
Al-un
  • 3,102
  • 2
  • 21
  • 40