no

How to Fix 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'...

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:
 $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);
?>

Related

web 4036961506891167183

Post a Comment Default Comments

Outsourcing

Are you looking for freelancers in the Philippines? Get in touch.

Donations

If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.

item