uploadify check script not working
Tech-Today

uploadify check script not working


To setup uploadify see the previous post:
Uploadify Setup

To add a check script add the following config:
$('#custom_file_upload').uploadify({
...
'checkScript' : "uploadifycheck.php",
}

Where uploadifycheck should contain the lines:
$fileArray = array();
foreach ($_POST as $key => $value) {
if ($key != 'folder') {
$targetFile = $root . "YOUR_PATH" . $value;
if (file_exists($targetFile)) {
$fileArray[$key] = $value;
}
}
}
/* It's important to have these 2 lines, echo or return alone is not enough.
* If the file does not exists in the web server and you use echo if will not upload.
* If only return the file will also not upload.
*/
echo json_encode($fileArray);
return json_encode($fileArray);
?>




- An Alternative Way Of Invoking Jenkins After Svn Commit
This page assumes that you have already setup the following in your Ubuntu 12.04 system: 1.) Jenkins 2.) Artifactory 3.) SVN Normally we use this plugin: https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin, where we edit the svn's post-commit...

- Jquery Document.ready $("#controlid") Is Null Error
I'm working on a script that uses jquery and it's working normally on a simple page that I made. However when I create a master page in c# and put the jquery code in the page that extends the master page I get this error: $("#controlId") is null...

- How To Use Syntaxhighlighter V3.0.83 On Blogger
The previous version of syntaxhighlighter uses flash to render the code, but in this version they are only using javascript. Here's how I integrated syntaxhighlighter to this blogger blog. Sample Source Code <pre class="brush: java"> public...

- How To Make Uploadify Work On Codeigniter
Recently, I have a requirement to implement a multiple file upload in one of my project. During upload I also need to pass a variable which will classify the category of the uploaded files. The category is a dropdown control. What we need: 1.) codeigniter...

- Integrate Uploadify With Codeigniter
Googling around I've found several solutions, but not to my liking some even suggest to edit the fla. Well there's no problem with that if you want to. The problem with the uploadify.swf is that if uploads the file relative to the .swf location....



Tech-Today








.