Moved here... EE->functions->fetch_file_paths(); if (isset($file_dirs[$matches[1]])) { $file_info['path'] = str_replace($matches[0], $file_dirs[$matches[1]], $path); $data = str_replace($matches[0], '', $the_filepath); } } $full_image_path = $file_info['path']; $full_image_path .= $the_file; //echo $full_image_path; ?>