diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php
index 458e22e71b..2d3608e9c9 100644
--- a/filemanager/inc/class.filemanager_ui.inc.php
+++ b/filemanager/inc/class.filemanager_ui.inc.php
@@ -261,7 +261,7 @@ class filemanager_ui
lang('link')).':
'.implode('
',$clipboard_files).'
' : '';
$content['mailpaste_tooltip'] = $clipboard_files ? ''.lang('Mail files').
':
'.implode('
',$clipboard_files).'
' : '';
- $content['mailpaste_files'] = $clipboard_files ? '&preset[file][]=vfs://default'.implode('&preset[file][]=vfs://default',$clipboard_files) : '';
+ $content['mailpaste_files'] = $clipboard_files;
$content['upload_size'] = etemplate::max_upload_size_message();
//_debug_array($content);
@@ -285,19 +285,27 @@ class filemanager_ui
if ($GLOBALS['egw_info']['user']['apps']['felamimail'])
{
$sel_options['action']['mail'] = lang('Mail files');
+ list($width,$height) = explode('x',egw_link::get_registry('felamimail','add_popup'));
$GLOBALS['egw_info']['flags']['java_script'] .= "