Commit 0b265a8e authored by Carsten  Rose's avatar Carsten Rose
Browse files

UsersManual/index.rst: Upload updated.

parent a1cc0200
...@@ -909,13 +909,29 @@ current record either to finalize the upload or to delete a previous uploaded fi ...@@ -909,13 +909,29 @@ current record either to finalize the upload or to delete a previous uploaded fi
* FormElement. *parameter*: * FormElement. *parameter*:
* *fileDestination*: Destination where to copy the file. A good practice is to specify a relative fileDestination - such an * *fileDestination*: Destination where to copy the file. A good practice is to specify a relative `fileDestination` - such an
installation (filesystem and database) are moveable. installation (filesystem and database) are moveable.
* If the final fileDestination should contain the original filename,
the variable *{{_filename}}* can be used. Example:: * If `fileDestination` should contain the original filename, the variable *{{_filename}}* 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}}' FROM Person AS p WHERE p.id={{r}} }}
* 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.
* All necessary subdirectories in `fileDestination` are automatically created.
Deleting a record and the referenced file
.........................................
If the user deletes a record which contains reference(s) to files, such files are deleted too.
Only columns where the columname contains `pathFileName` are checked for file references. Therefore, always choose a
columnanem which contains `pathFileName`.
If there are other records, which references the same file, such files are not deleted (but the record is deleted).
It's a very basic check: just the current column of the current table is compared.
.. _class-action: .. _class-action:
......
Supports Markdown
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