I have tried to convert one of my application to Revolution and having problem doing it like i would like to.
The first issue is not a real blocker.
I’m trying to use a flash uploader (
jquery uploadify) with a connector like in the tutorial.
With this script, you can precise extra paramaters with the option scriptdata:
$("#myid").uploadify({
'uploader' : '/assets/components/upload/flash/uploadify.swf',
'script' : '/assets/components/upload/connector.php',
'scriptData' : {'action':'upload', 'ctx':'web'}
});
Unfortunately, the upload break in the connector with this line
<?php
require_once MODX_CONNECTORS_PATH.'index.php';
It’s not really a blocker because the same code work if i use a file upload.php with just the upload code needed.
But i can’t use MODx function with the script (it works fine with Evolution).
The second problem is a blocker.
The file uploaded is an Excel file uploaded in "assets/files/" directory.
When i try to access it with php and the function file_exist, it throw me a fatal error telling me that the file does not exist or is not readable.
<?php
//The line that attempting to load the file
$objPHPExcel = $objReader->load('assets/files/myfile.xls');
//The function used to load the file in the Excel class
if (!file_exists($pFilename)) {
throw new Exception("Could not open " . $pFilename . " for reading! File does not exist.");
}
The same code works well with Evo too.
Any ideas what could be the problem?