File streaming problems

Hello,
I am using the file streaming plugin to upload some files to the server and am getting the follow error in the server console

java.lang.RuntimeException: Default folder couldnt be resolved

It suggests that I set a default folder location which makes sense but there is no such option in the servoy-admin page, do I add manually ??

You can set the default folder in the Servoy Admin Page under the Server Plugins page. At the top under File Plugin you can set it in the field servoy.FileServerService.defaultFolder

omar:
You can set the default folder in the Servoy Admin Page under the Server Plugins page. At the top under File Plugin you can set it in the field servoy.FileServerService.defaultFolder

Thanks Omar, But the problem I have for some reason the setting is not there, I am doing a upgrade on the install maybe thats the problem

Ok, have you tried setting it directly in the servoy.properties file?

No, how do I do that, could u provide an example please?

Add the following code to your servoy.properties file (…/servoy/application_server/servoy.properties)"

servoy.FileServerService.defaultFolder=/myroot/my_folder

where the path corresponds to the location where you want the uploaded files to land.

Oh and be sure to restart the application server after you make the changes.

Thanks Omar, all good…

The fact that it doesn’t appear in the servoy-admin/plugins page is coming from a bug in the detection of the default folder which was creating a NullPointerException, this has been fixed in the latest version of the plugin that ships with the latest Servoy.
One workaround is indeed to set an absolute path in servoy.FileServerService.defaultFolder, another one is to update.

Hi Patrick,
Thankyou… I just upgraded to the latest version and all is good.