diff --git a/source/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptPost.java b/source/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptPost.java
index fcd4364913..d75c3c274e 100644
--- a/source/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptPost.java
+++ b/source/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptPost.java
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 2005-2015 Alfresco Software Limited.
+ *
+ * This file is part of Alfresco
+ *
+ * Alfresco is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Alfresco is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with Alfresco. If not, see .
+ */
+
package org.alfresco.rest.framework.webscripts;
import java.util.Arrays;
@@ -153,7 +172,7 @@ public class ResourceWebScriptPost extends AbstractResourceWebScript implements
throw new DeletedResourceException("(DELETE) " + resource.getMetaData().getUniqueId());
}
- if (resObj instanceof MultiPartResourceAction.Create>)
+ if (resObj instanceof MultiPartResourceAction.Create> && params.getPassedIn() instanceof FormData)
{
MultiPartResourceAction.Create