Index: components/file.inc
===================================================================
--- components/file.inc (revision 19890)
+++ components/file.inc (working copy)
@@ -130,9 +130,9 @@
'#type' => 'textfield',
'#title' => t('Upload Directory'),
'#default_value' => $component['extra']['savelocation'],
- '#description' => '
' . t('Webform uploads are always saved in the site files directory. You may optionally specify a subfolder to store your files.') . '
',
+ '#description' => t('Webform uploads are always saved in the default files directory. You may optionally specify a subfolder to store your files.'),
'#weight' => 3,
- '#field_prefix' => file_directory_path() . '/webform/',
+ '#field_prefix' => file_stream_wrapper_get_instance_by_scheme(file_default_scheme())->getDirectoryPath() . '/webform/',
'#element_validate' => array('_webform_edit_file_check_directory'),
'#after_build' => array('_webform_edit_file_check_directory'),
);