mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
First cut of the Uploader in pure html (non flash version).
- Works in single upload and update mode (multi upload mode defaults to single upload) - Tested in doclib and works Stuff that needs fixing is: - Error handling from internal server errors - Make it work in profile page - Proper styling git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10427 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Upload failure</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<#if (args.failure?exists)>
|
||||||
|
<script type="text/javascript">
|
||||||
|
${args.failure}
|
||||||
|
</script>
|
||||||
|
</#if>
|
||||||
|
</body>
|
||||||
|
</html>
|
@@ -1,8 +1,12 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>File's Uploaded</title>
|
<title>Upload success</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
File's Uploaded
|
<#if (args.success?exists)>
|
||||||
|
<script type="text/javascript">
|
||||||
|
${args.success}
|
||||||
|
</script>
|
||||||
|
</#if>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@@ -115,7 +115,7 @@ function main()
|
|||||||
status.redirect = true;
|
status.redirect = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updateNodeRef !== null && uploadDirectory === null)
|
if (updateNodeRef !== null && updateNodeRef != "" && (uploadDirectory === null || uploadDirectory == ""))
|
||||||
{
|
{
|
||||||
// Update existing file mode
|
// Update existing file mode
|
||||||
var workingCopy = search.findNode(updateNodeRef);
|
var workingCopy = search.findNode(updateNodeRef);
|
||||||
@@ -160,7 +160,7 @@ function main()
|
|||||||
|
|
||||||
model.document = workingCopy;
|
model.document = workingCopy;
|
||||||
}
|
}
|
||||||
else if (uploadDirectory !== null && updateNodeRef === null)
|
else if (uploadDirectory !== null && (updateNodeRef === null || updateNodeRef == ""))
|
||||||
{
|
{
|
||||||
// Upload file mode
|
// Upload file mode
|
||||||
var destNode = container;
|
var destNode = container;
|
||||||
|
Reference in New Issue
Block a user