Project

General

Profile

Statistics
| Branch: | Revision:

colonymech / docs / www / colonyscout / internal / uploadify / uploadify / upload.php @ f59acf11

History | View | Annotate | Download (505 Bytes)

1
<?php
2
// JQuery File Upload Plugin v1.4.1 by RonnieSan - (C)2009 Ronnie Garcia
3
if (!empty($_FILES)) {
4
        $tempFile = $_FILES['Filedata']['tmp_name'];
5
        $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_GET['folder'] . '/';
6
        $targetFile =  str_replace('//','/',$targetPath) . $_FILES['Filedata']['name'];
7
        
8
        // Uncomment the following line if you want to make the directory if it doesn't exist
9
        // mkdir(str_replace('//','/',$targetPath), 0755, true);
10
        
11
        move_uploaded_file($tempFile,$targetFile);
12
}
13
        
14
echo '1';
15

    
16
?>