Package edu.wisc.game.rest
Class FileUploadResource
java.lang.Object
edu.wisc.game.rest.FileUploadResource
@Path("/FileUploadResource") public class FileUploadResource extends Object
- Author:
- geekmj Single File and Multiple Files upload example
-
Constructor Summary
Constructors Constructor Description FileUploadResource()
-
Method Summary
Modifier and Type Method Description jakarta.ws.rs.core.Response
uploadFile(String tags, InputStream file, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDisposition)
jakarta.ws.rs.core.Response
uploadFiles(org.glassfish.jersey.media.multipart.FormDataMultiPart multiPart)
-
Constructor Details
-
FileUploadResource
public FileUploadResource()
-
-
Method Details
-
uploadFile
@Path("/file") @POST @Consumes("multipart/form-data") public jakarta.ws.rs.core.Response uploadFile(@DefaultValue("") String tags, InputStream file, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDisposition) -
uploadFiles
@Path("/files2") @POST @Consumes("multipart/form-data") public jakarta.ws.rs.core.Response uploadFiles(org.glassfish.jersey.media.multipart.FormDataMultiPart multiPart)
-