function filedepot_client_upload in filedepot 6
Function called by the menu handler callback that is used only by the windows desktop client.
1 string reference to 'filedepot_client_upload'
- filedepot_menu in ./
filedepot.module - Implementation of hook_menu().
File
- ./
filedepot.module, line 1017 - filedepot.module Filedepot: File Management Module developed by Nextide www.nextide.ca Full featured document managment module with a desktop application feel. Integrated role and user permissions to secure folders, automated notifications, Tag Cloud…
Code
function filedepot_client_upload() {
$filedepot = filedepot_filedepot();
switch ($_POST['op']) {
case 'testconnection':
// Function should only execute if the access permission has been verified in filedepot_user_access()
// Return success XML record to the desktop client
header("Cache-Control: no-store, no-cache, must-revalidate");
header("content-type: application/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
echo "<data>";
echo "<status>success</status>";
echo "<statusid>1</statusid>";
echo "</data>";
break;
default:
if (isset($_FILES['file']) and is_array($_FILES['file'])) {
$ret = $filedepot
->clientUploadFile($_FILES['file'], $_POST['username'], $_POST['password']);
}
}
}