Get complete URL from file

I need to get the complete url to a file in the server, in a folder, that was previously upload, but i don’t know how can i get the entire url, the only i can get is the realtive path to the plugins.file.getDefaulUploadLocation, and no the entire url to the server, any idea?

you can use application.getServerURL(), that will give you the server url to the c:\servoy\application_server\server\webapps\ROOT folder.

But if i want to go to for example application_server/?

I don’t think you can get to that folder through the application server.

Yes, i finally use the get getServerURL and create the path, thanks for all