Upload vs OpenFileDialog confusion

Answered
0
0

I see the Upload control – I’ve seen the sample, it’s straightforward to use, but I don’t want a control on my form that needs to be clicked on, I want to go straight to the dialog that appears when the user clicks on that control.

I see OpenFileDialog, but the documentation indicates that this allows the user to choose a file that’s present on the server (or another namespace like a cloud provider through a suitable provider), while I need to user to pick a file from their local system.

So, is it possible to get directly to the dialog used by the Upload control without ever having the user click on an Upload control, or via drag-drop?

 

  • You must to post comments
Best Answer
0
0

You cannot show a file selection dialog on the user’s computer without an action from the user. You can use hidden Wisej.Web.Upload control and call this.upload1.UploadFiles() but it must come from a user action. There is no way around it.

  • You must to post comments
0
0

Hi Carl

You can check this post related to drag and from files into wisej controls

https://wisej.com/support/question/dragdrop-files#sabai-entity-content-12039

hth

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.