Commit 3b40767e authored by Carsten  Rose's avatar Carsten Rose
Browse files

Index.rst: fixed wrong STORE_FORM variable names, update to latest uplaod...

Index.rst: fixed wrong STORE_FORM variable names, update to latest uplaod '_filename_<FE_NAME>' notation.
parent decdd052
......@@ -288,9 +288,9 @@ Store: *FORM* - F
+=================================+============================================================================================================================================+
| <FormElement name> | Name of native *FormElement*. To get, exactly and only, the specified *FormElement* (for 'p_id'): *{{p_id:F}}* |
+---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| _<FormElement name>_filename | Original filename of uploaded file |
| _filename__<FE_NAME> | Original filename of uploaded file from FormElement <FE_NAME> |
+---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| _<FormElement name>_deleted='1' | If there was already a file uploaded and the user has clicked the trash, than this field becomes '1' |
| _deleted__<FE_NAME>='1' | If there was already a file uploaded and the user has clicked the trash, than this field becomes '1' |
+---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
.. _STORE_SIP:
......@@ -1208,10 +1208,11 @@ current record, either to finalize the upload or to delete a previous uploaded f
* *fileDestination*: Destination where to copy the file. A good practice is to specify a relative `fileDestination` -
such an installation (filesystem and database) are moveable.
* If the original filename should be part of `fileDestination`, the variable *{{_filename}}* can be used. Example ::
* If the original filename should be part of `fileDestination`, the variable *{{_filename_<FE_NAME>}}* can be used. Example ::
fileDestination={{SELECT 'fileadmin/user/pictures/', p.name, '-{{_filename}}' FROM Person AS p WHERE p.id={{r}} }}
fileDestination={{SELECT 'fileadmin/user/pictures/', p.name, '-{{_filename_<FE_NAME>}}' FROM Person AS p WHERE p.id={{r}} }}
* *<FE_NAME>* is the name of the upload FormElement.
* If a file already exist under `fileDestination`, an error message is shown and 'save' is aborted.
The user has no possibility to overwrite the already existing file. If the whole workflow is correct, this situation
should no arise. Check also *fileReplace* below.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment