diff --git a/README.md b/README.md
old mode 100755
new mode 100644
diff --git a/assets/.htaccess b/assets/.htaccess
old mode 100755
new mode 100644
diff --git a/assets/css/dropzone.css b/assets/css/dropzone.css
old mode 100755
new mode 100644
diff --git a/assets/js/dropzone.js b/assets/js/dropzone.js
old mode 100755
new mode 100644
diff --git a/classes/fileMoveAndAppend.php b/classes/fileMoveAndAppend.php
old mode 100644
new mode 100755
index e292e32..b68565c
--- a/classes/fileMoveAndAppend.php
+++ b/classes/fileMoveAndAppend.php
@@ -108,6 +108,16 @@ public function moveAppend(&$arrSubmittedArray, $arrLabelsArray, $objForm, $arrF
$arrSubmittedArray[$myElemData->name] .= "\nhttp://" . $_SERVER['SERVER_NAME'] . '/' . $subfolder . $uploadFolder.'/'.$storeFolderPreFile . $curFile;
}
}
+ if(in_array($myElemData->sendcase,array('link','savetodb')))
+ {
+ // Dateien speichern -> Formular save to database
+ if (file_exists(TL_ROOT . '/' . $uploadFolder.'/'.$storeFolderPreFile . $curFile))
+ {
+ $subfolder = str_replace(array('/','\\'),'',$GLOBALS['TL_CONFIG']['websitePath']);
+ if( $subfolder != '') $subfolder.= '/';
+ $arrSubmittedArray[$myElemData->name] .= $uploadFolder.'/'.$storeFolderPreFile . $curFile;
+ }
+ }
if($myElemData->sendcase == 'attach')
{
// Datei-Verlinkung loeschen
diff --git a/classes/processFormData.php b/classes/processFormData.php
old mode 100755
new mode 100644
diff --git a/config/autoload.ini b/config/autoload.ini
old mode 100755
new mode 100644
diff --git a/config/autoload.php b/config/autoload.php
old mode 100755
new mode 100644
diff --git a/config/config.php b/config/config.php
old mode 100755
new mode 100644
diff --git a/dca/tl_form_field.php b/dca/tl_form_field.php
index f403d91..c58a266 100755
--- a/dca/tl_form_field.php
+++ b/dca/tl_form_field.php
@@ -26,7 +26,7 @@
'default' => 'attach',
'exclude' => true,
'inputType' => 'radio',
- 'options' => array('attach', 'link', 'all'),
+ 'options' => array('attach', 'link', 'all', 'savetodb'),
'eval' => array('mandatory'=>true),
'reference' => &$GLOBALS['TL_LANG']['tl_form_field'],
'sql' => "varchar(32) NOT NULL default ''"
diff --git a/dca/tl_multiuploadfilecounter.php b/dca/tl_multiuploadfilecounter.php
old mode 100755
new mode 100644
diff --git a/elements/DropUpload.php b/elements/DropUpload.php
old mode 100755
new mode 100644
diff --git a/languages/de/tl_form_field.php b/languages/de/tl_form_field.php
index 57d4ba0..832c890 100755
--- a/languages/de/tl_form_field.php
+++ b/languages/de/tl_form_field.php
@@ -32,6 +32,7 @@
$GLOBALS['TL_LANG']['tl_form_field']['sendcase'] = array('Dateiversand','Bitte geben Sie hier an, ob die Dateien als Anhang versandt oder als Link verchickt werden sollen.');
$GLOBALS['TL_LANG']['tl_form_field']['attach'] = array('Dateien anhängen','');
$GLOBALS['TL_LANG']['tl_form_field']['link'] = array('Dateien verlinken','');
+$GLOBALS['TL_LANG']['tl_form_field']['savetodb'] = array('Dateien speichern für "Formulardaten speichern"','');
$GLOBALS['TL_LANG']['tl_form_field']['all'] = array('Dateien anhängen und verlinken','');
$GLOBALS['TL_LANG']['tl_form_field']['storecase'] = array('Speicheroptionen','Damit es zu keinen Konflikten kommt, wird für jeden Seitenbesucher eine neue ID erzeugt.
Diese ID wird verwendet um die hochgeldenen Bilder zu unterscheiden und Duplikate zu vermeiden.
Dateien werden nach erfolgrichem Formularversand entweder in den neuen Unterordner "ID" kopiert, oder direkt in das ausgewählte Verzeichnis mit neuem Dateinamen "ID_Dateiname".');
$GLOBALS['TL_LANG']['tl_form_field']['folder'] = array('Im Unterordner ID speichern','');
diff --git a/languages/en/tl_form_field.php b/languages/en/tl_form_field.php
index a7dbf7e..0f1c26d 100755
--- a/languages/en/tl_form_field.php
+++ b/languages/en/tl_form_field.php
@@ -32,6 +32,7 @@
$GLOBALS['TL_LANG']['tl_form_field']['sendcase'] = array('File forewarding','Please enter if the uploaded files shall be forwareded as attachement or as links.');
$GLOBALS['TL_LANG']['tl_form_field']['attach'] = array('Attach files','');
$GLOBALS['TL_LANG']['tl_form_field']['link'] = array('Link files','');
+$GLOBALS['TL_LANG']['tl_form_field']['savetodb'] = array('Save file for "save form-data to database"','');
$GLOBALS['TL_LANG']['tl_form_field']['all'] = array('Attach and link files','');
$GLOBALS['TL_LANG']['tl_form_field']['storecase'] = array('Save file options','To prevent conflicts, a new ID is generated for each visitor.
This ID is used to differentiate the uploaded files and to prevent duplicates.
After successfull send of the form, files are either copied to a subolder "ID" or copied directly to the choosen folder with new name "ID_filename".');
$GLOBALS['TL_LANG']['tl_form_field']['folder'] = array('Save to subfolder ID.','');
diff --git a/templates/form_multifileupload.html5 b/templates/form_multifileupload.html5
old mode 100755
new mode 100644