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:
Erik Winlof
2008-08-19 16:58:28 +00:00
parent 6ee3e78da8
commit 164b43b9fd
3 changed files with 20 additions and 4 deletions

View File

@@ -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>

View File

@@ -1,8 +1,12 @@
<html>
<head>
<title>File's Uploaded</title>
<title>Upload success</title>
</head>
<body>
File's Uploaded
<#if (args.success?exists)>
<script type="text/javascript">
${args.success}
</script>
</#if>
</body>
</html>

View File

@@ -115,7 +115,7 @@ function main()
status.redirect = true;
}
if (updateNodeRef !== null && uploadDirectory === null)
if (updateNodeRef !== null && updateNodeRef != "" && (uploadDirectory === null || uploadDirectory == ""))
{
// Update existing file mode
var workingCopy = search.findNode(updateNodeRef);
@@ -160,7 +160,7 @@ function main()
model.document = workingCopy;
}
else if (uploadDirectory !== null && updateNodeRef === null)
else if (uploadDirectory !== null && (updateNodeRef === null || updateNodeRef == ""))
{
// Upload file mode
var destNode = container;