Warning for parameter {UploadData}

Hello,

What would be the package for

@param {UploadData}

?

Currently it brings warning
Unknown type {UploadData}
Haven’t found it in types list that I get via CTRL+space

How to fix this warning? Anyway, functionality works as expected

Regards

There is an UploadData class in the file plugin, so if that’s the kind of data you are dealing with you could use:

@param {Packages.com.servoy.extensions.plugins.file.UploadData} yourParam

Alternatively, you could skip the type entirely and use:

@param yourParam

Hi Imre,

Where did you get the UploadData type from?

Paul

Thank you Patrick & Paul!

Works:

{Packages.com.servoy.extensions.plugins.file.UploadData}

UploadData is for WebClient: input param for callback function after file select dialog -where you set the files for streaming to server.
Note: multiselect doesn’t work in WebClient file(s) select dialog even when the appropriate param has been set to true

Regards

Hi Imre,

Curious to know some more details where you get this type from. While Patrick’s suggestion works, it shouldn’t be necessary to reference the entire Java class for stuff Servoy provides. However, we do not really see how you’ve gotten a hold of the UploadData type.

Regards,

Paul

Hi Paul,

Have been using UploadData in WebClient’s file upload callback functions (as mentioned already).
Interesting that this works

{Packages.com.servoy.extensions.plugins.file.UploadData}

And also, for example

{plugins.file.JSFile}

BUT this does NOT work -warning is still there. So needed to do whole Java reference like above:

{plugins.file.UploadData}

Let me know if I should share anything else, please

Regards

K, still don’t know how you got UploadData in the first place, but you should refrain from using it and use plugins.file.JSFile instead.

UpploadData in an internal class, which is casted to JSFile before sending it into the callback functions

Paul

We’ve have located the location where the File plugin applies arguments of type UploadData to the callback function, instead of JSFile. Will have this fixed for the Servoy 6.1.1.

Paul

pbakker:
We’ve have located the location where the File plugin applies arguments of type UploadData to the callback function, instead of JSFile. Will have this fixed for the Servoy 6.1.1.

Paul

Fixed in Servoy 6.1.1.

Regards,
Andrei