mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
126588 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 124813 jkaabimofrad: RA-889: Changed multipart field's name from "filename" to "name". git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126933 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2093,7 +2093,7 @@ public class NodesImpl implements Nodes
|
|||||||
{
|
{
|
||||||
switch (field.getName().toLowerCase())
|
switch (field.getName().toLowerCase())
|
||||||
{
|
{
|
||||||
case "filename":
|
case "name":
|
||||||
String str = getStringOrNull(field.getValue());
|
String str = getStringOrNull(field.getValue());
|
||||||
if ((str != null) && (! str.isEmpty()))
|
if ((str != null) && (! str.isEmpty()))
|
||||||
{
|
{
|
||||||
|
@@ -264,7 +264,7 @@ public class MultiPartBuilder
|
|||||||
fp.setCharSet(fileData.getEncoding());
|
fp.setCharSet(fileData.getEncoding());
|
||||||
fp.setContentType(fileData.getMimetype());
|
fp.setContentType(fileData.getMimetype());
|
||||||
parts.add(fp);
|
parts.add(fp);
|
||||||
addPartIfNotNull(parts, "filename", fileData.getFileName());
|
addPartIfNotNull(parts, "name", fileData.getFileName());
|
||||||
}
|
}
|
||||||
addPartIfNotNull(parts, "relativepath", relativePath);
|
addPartIfNotNull(parts, "relativepath", relativePath);
|
||||||
addPartIfNotNull(parts, "updatenoderef", updateNodeRef);
|
addPartIfNotNull(parts, "updatenoderef", updateNodeRef);
|
||||||
|
Reference in New Issue
Block a user