diff --git a/modules/filefield_paths.inc b/modules/filefield_paths.inc index 2c56650..7cd45c3 100644 --- a/modules/filefield_paths.inc +++ b/modules/filefield_paths.inc @@ -57,7 +57,7 @@ function filefield_paths_filefield_paths_process_file($type, $entity, $field, $i // Check that the destination is writeable. $wrappers = file_get_stream_wrappers(STREAM_WRAPPERS_WRITE); foreach ($items as &$file) { - $scheme = file_uri_scheme($file['uri']); + $scheme = $field['settings']['uri_scheme']; if (!empty($wrappers[$scheme]) && ($file['timestamp'] == REQUEST_TIME || $settings['active_updating'])) { $token_data = array( 'file' => (object) $file,