Class FileUploadController
- java.lang.Object
-
- org.openforis.collect.web.controller.FileUploadController
-
@Controller public class FileUploadController extends Object
Handles files upload into the "temp" folder (relative to the context path). The files are uploaded in a subfolder named #sessionid for each http session.- Author:
- S. Ricci
-
-
Constructor Summary
Constructors Constructor Description FileUploadController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringuploadFile(UploadItem uploadItem)
-
-
-
Field Detail
-
TEMP_PATH
public static final String TEMP_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
uploadFile
@RequestMapping(value="/uploadFile.htm", method=POST) @ResponseBody public String uploadFile(UploadItem uploadItem) throws IOException, SurveyImportException- Throws:
IOExceptionSurveyImportException
-
-