*/
public function stashFile( $path, $data = array(), $key = null ) {
if ( ! file_exists( $path ) ) {
+ wfDebug( "UploadStash: tried to stash file at '$path', but it doesn't exist" );
throw new UploadStashBadPathException( "path doesn't exist" );
}
$fileProps = File::getPropsFromPath( $path );
// returns a ThumbnailImage object containing the url and path. Note. NOT A FILE OBJECT.
$thumb = parent::transform( $params, $flags );
+ wfDebug( "UploadStash: generating thumbnail\n" );
+ wfDebug( print_r( $thumb, 1 ) );
$key = $this->thumbName($params);
// remove extension, so it's stored in the session under '120px-123456'