I made a few debug statements :
foreach ($other_file_formats_previews as $offp => $offp_image) {
if ($offp == strtolower(getExtension($list[$i]))) { // we have something to check
tfu_debug('let us check '. $offp);
$real_video = realpath($file_dir . "/" . $list[$i]);
tfu_debug('real video '. $real_video);
$real_image = exchangeExtension($real_video, "jpg");
tfu_debug('real_image '. $real_image);
$p_image = $file_dir . "/" . exchangeExtension($list[$i], "jpg");
tfu_debug('p_image '. $p_image);
$p_image2 = $file_dir . "/" . exchangeExtension($list[$i], "JPG");
tfu_debug('p_image2 '. $p_image2);
Here is the debug file :
09.01.2013 20:56:36 - let us check avi
09.01.2013 20:56:36 - real video /usr/local/www/twg19/pictures/upload/ffmpeg_test.avi
09.01.2013 20:56:36 - Security tokens did not match. Session: 1378806430897360693048065370052 : param 1378806430897360693048068995005 no further actions are allowed.
Where is the 'removeextensions' function ?