Upload files with polymer and send to rest service

Hi,

I need to upload files with polymer and send the file to a rest service cuba. But this file is not saved in the database, it goes to the cloud. Any examples of how to do this?

Thank you.

Hi,
Unfortunately it’s impossible now to use standard middleware services for working with files. You’ll have to write your own MVC controller. Read here about creating custom OAuth protected controllers. As an example of controller that works with files, you can take the com.haulmont.restapi.controllers.FileUploadController class

Hi,

Thanks for the reply, I’ll use your suggestion to implement the custom controller.