]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - server/runtime/org.argeo.server.jcr.mvc/src/main/java/org/argeo/jcr/mvc/JcrManagerController.java
Update license headers
[lgpl/argeo-commons.git] / server / runtime / org.argeo.server.jcr.mvc / src / main / java / org / argeo / jcr / mvc / JcrManagerController.java
index 55aecae953260db3718bf61f58b8d6563a60ad1e..67a99ae807cea6387d6699d7e5e1a5b69f771505 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ * Copyright (C) 2007-2012 Mathieu Baudier
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.argeo.jcr.mvc;
 
 import java.util.List;
@@ -90,7 +89,7 @@ public class JcrManagerController implements MvcConstants, JcrMvcConstants {
                // pathInfo.indexOf('/'));
                if (log.isDebugEnabled())
                        log.debug("Upload to " + path);
-               resourceAdapter.update(path.toString(), res);
+               resourceAdapter.update(path.toString(), res.getInputStream());
                return ServerAnswer.ok("File " + path + " imported");
        }