--- audio.module Fri Jul 31 18:20:53 2009 +++ audio.module Sun Aug 09 09:22:39 2009 @@ -469,7 +469,10 @@ ), ); - if (isset($file->filepath) && file_exists($file->filepath)) { + // old: if (isset($file->filepath) && file_exists($file->filepath)) { + // FIXME?: If filepath is set but !file_exists, this change will result in + // a 404 -- which to me is expected behavior, frankly. + if (isset($file->filepath)) { // TODO: should these links be by vid? $ret['url_play'] = url('audio/play/'. $node->nid, array('absolute' => TRUE)); if ($ret['audio']['downloadable']) { --- audio.pages.inc Thu Oct 02 13:03:44 2008 +++ audio.pages.inc Sun Aug 09 09:11:12 2009 @@ -146,7 +146,7 @@ header($header); } - $source = file_create_path($source); + $source = file_create_url($source); // Transfer file in 1024 byte chunks to save memory usage. if ($fd = fopen($source, 'rb')) {