Upload a file using Restlet multipart/form-data in java
问题 So I searched quite a bit now for sample codes but the only thing I found was on examples for the server side, meaning the receiving part . I want to create an application, that uses restlet to upload a file, content type: multipart/form-data . So I need the sending part How do I create the form for this? What I tried is the following, but it's not working: public void UploadFile(File f){ Form fileForm = new Form(); fileForm.add(Disposition.NAME_FILENAME, "test.jpg"); Disposition disposition