In the Community, Teamwork, Efficiency, and Performance editions you can upload files by doing a multipart post request on any of the available servlets. It returns the name of the temporary uploaded file. This file name can be used to link those files with any REST resource.
Available servlet list:
/portal/fileUpload, supports any type of file
/portal/processUpload, supports only