Commit 3ced2c5d53dbf84b669e923862f202bf1d62d82f
1 parent
139c6214
Initial revision. File 2 of document upload test
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@303 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
22 additions
and
0 deletions
tests/documentmanagement/documentUpload2.php
0 → 100644
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | +* Second part of test file for document upload | ||
| 4 | +* | ||
| 5 | +* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | ||
| 6 | +* @date 17 January 2003 | ||
| 7 | +* | ||
| 8 | +*/ | ||
| 9 | + | ||
| 10 | +require_once("../../config/dmsDefaults.php"); | ||
| 11 | + | ||
| 12 | +if (checkSession()) { | ||
| 13 | + require_once("$default->owl_fs_root/lib/documentmanagement/DocumentModify.inc"); | ||
| 14 | + require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); | ||
| 15 | + require_once("$default->owl_fs_root/lib/folderManagement/FolderLib.inc"); | ||
| 16 | +require_once("$default->owl_fs_root/lib/folderManagement/FolderManager.inc"); | ||
| 17 | + | ||
| 18 | + echo "Document upload succeeded: " . (DocumentModify::uploadDocument($_FILES, $folderDropDown, "None", $_FILES['upfile']['tmp_name']) ? "Yes" : "No"); | ||
| 19 | + | ||
| 20 | + | ||
| 21 | +} | ||
| 22 | +?> |