type file, set file name

Hello,

how can i set the name of an item with type file?
And how can i get the data from the item with type file?

With an input item is it: myForm.getItemValue(“name”);
And i give the input item the attribute name, but this don’t work with an file item.

I’m wondering exactly the same, do you have any news about this issue?

Thanks!

There is no way to send content of the element to the server side with Ajax request. This is browser’s security limitation. getFormData() method doesn’t return file object also with security reasons. It could return file name as a string, but will it be useful on the server side?

The only way send file to the server side is to use standard form submit mechanism.