public class FileUpload
extends Base
| Constructor and Description |
|---|
FileUpload() |
| Modifier and Type | Method and Description |
|---|---|
StringScalarType |
uploadFile(javax.servlet.http.HttpServletRequest request,
String errorType,
InputStream fileInputStream,
com.sun.jersey.core.header.FormDataContentDisposition fileDetail,
InputStream file1InputStream,
com.sun.jersey.core.header.FormDataContentDisposition file1Detail,
InputStream file2InputStream,
com.sun.jersey.core.header.FormDataContentDisposition file2Detail,
InputStream file3InputStream,
com.sun.jersey.core.header.FormDataContentDisposition file3Detail,
InputStream file4InputStream,
com.sun.jersey.core.header.FormDataContentDisposition file4Detail,
InputStream file5InputStream,
com.sun.jersey.core.header.FormDataContentDisposition file5Detail)
POST /rest/Upload
|
public StringScalarType uploadFile(@Context
javax.servlet.http.HttpServletRequest request,
String errorType,
InputStream fileInputStream,
com.sun.jersey.core.header.FormDataContentDisposition fileDetail,
InputStream file1InputStream,
com.sun.jersey.core.header.FormDataContentDisposition file1Detail,
InputStream file2InputStream,
com.sun.jersey.core.header.FormDataContentDisposition file2Detail,
InputStream file3InputStream,
com.sun.jersey.core.header.FormDataContentDisposition file3Detail,
InputStream file4InputStream,
com.sun.jersey.core.header.FormDataContentDisposition file4Detail,
InputStream file5InputStream,
com.sun.jersey.core.header.FormDataContentDisposition file5Detail)
Upload up to 6 files via a form-data POST. All files will be uploaded to /snfs/common/data/upload on the system.
The destination filename is specified by the filename parameter in the Content-Disposition
header in each subpart of the multipart body. The file parameter in the Content-Disposition
header in each subpart must be "file", "file1", "file2", "file3",
"file4", "file5", for the (up to) 6 files.
Request Content type: multipart/form-data
Response Entity type: <xs:element name="StringScalarType">
Copyright © 2011-2026 Quantum Corporation. All Rights Reserved.