Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @POST
- @Path("/upload")
- @Consumes(MediaType.MULTIPART_FORM_DATA)
- //public Response uploadFile(
- public void uploadFile(
- @FormDataParam("file") InputStream fileInputStream,
- @FormDataParam("file") FormDataContentDisposition contentDispositionHeader,
- @CookieParam(value = "name") String name,
- @FormDataParam("title") String title) {
- [16:07:02] Vadym Morozov: <section class="uploadform">
- <form action="http://localhost:8080/Bank1/rest/jsonServices/upload" method="post" enctype="multipart/form-data" id="upform">
- <p>
- Select a file : <input type="file" name="file" size="45" id="fileinput"/>
- </p>
- <input type="text" name="title" id="title">
- <input type="submit" value="Upload It" id="inpbtn" />
- </form>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement