cancel
Showing results for 
Search instead for 
Did you mean: 

Initialize the filepath in FileUpload ?

Former Member
0 Kudos

Hello,

Is it possible to initialize the filepath in the inputfield of the FileUpload UIElement ?

I need to do that to upload the content stored at a fixed place on the client computer.

Note: If someone know how i can read the COM serial port on the client, i will appreciate any help.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

It won't be possible to initialize the file path in the FileUpload UI.

There is no method available for the FileUpload UI and also for the IWDResource interface to do this task.

Regards,

Ajay

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Nguyen,

The Web Dynpro FileUpload element gets rendered to HTML as an INPUT element of form:

<input type="file" />

While the

<input>

element does have a value attribute which can be set to an initial value, this value is ignored by all browsers when the input type is of type file. This is for security reasons to prevent "stealing" files from a client computer by a combination of HTML and client-side JavaScript.

For this reason, Web Dynpro has no function for setting a file path for the FileUpload element.

- Walter