mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
File upload service: Does an overwrite if file is versionable by default.
File upload GUI: Displays the No flash text without destroying the layout My site profile and collaboration site handles missing variables such as title and description Create site: Its now possible to choose between public and private in the gui git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9982 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -8,7 +8,7 @@ var thumbnailName = null;
|
||||
// Upload specific
|
||||
var uploadDirectory = null;
|
||||
var title = "";
|
||||
var overwrite = false;
|
||||
var overwrite = true; // If a filename clashes for a versionable file
|
||||
|
||||
// Update specific
|
||||
var updateNodeRef = null;
|
||||
@@ -154,7 +154,7 @@ else
|
||||
if (existingFile !== null)
|
||||
{
|
||||
// File already exists, decide what to do
|
||||
if (overwrite)
|
||||
if (existingFile.hasAspect("cm:versionable") && overwrite)
|
||||
{
|
||||
// Upload component was configured to overwrite files if name clashes
|
||||
existingFile.properties.content.write(content);
|
||||
|
Reference in New Issue
Block a user