Got it solved by myself
The file parameter must really be a javascript File-Object. I’ve took some piece of custom code to generate it:
file
The custom code is:
Regards