Debugged upload_data_file method unified for upload_data_file & add eventz and moved...
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / add.inc
index f77499df345a89fc8eb87bc4eee120d96d969e93..e4b68d03f65cc2e975ab867cf9a30c1f44b868a5 100644 (file)
@@ -106,8 +106,8 @@ function add() {
        }
     
     if ($_FILES['data_file']['tmp_name']) {
-       copy($_FILES['data_file']['tmp_name'], FILE_DIR.$_SESSION['user_id'].'/'.$node_id.".$suffix");
-       symlink(FILE_DIR.$_SESSION['user_id'].'/'.$node_id.".$suffix",FILE_DIR.'/'.$node_id);
+       require(INCLUDE_DIR.'filez.inc');
+       filez::upload_data_file($node_id);
     }
 
     //substitute @@@ token by a node_id of a newly created node
This page took 0.086562 seconds and 4 git commands to generate.