Commit f6f54c51 authored by Peter Harrison's avatar Peter Harrison

Fix bug with resource upload.

parent 92517ec6
......@@ -93,16 +93,15 @@ public class ResourceController {
HttpServletRequest request) throws Exception {
logger.info("Saving Resource " + boardId + "/" + resourceId);
//String value = IOUtils.getStringFromReader(request.getReader());
BufferedReader reader = request.getReader();
reader.reset();
StringBuilder valueBuilder = new StringBuilder();
while(true){
String newValue = reader.readLine();
if( newValue!=null){
valueBuilder.append(newValue);
logger.info("Line: " + newValue);
} else {
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment