Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
1fb7a2a8
Commit
1fb7a2a8
authored
8 years ago
by
Carsten Rose
Browse files
Options
Downloads
Patches
Plain Diff
Iindex.rst: update 'file-upload' doc.
parent
2be7d97c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extension/Documentation/UsersManual/Index.rst
+7
-6
7 additions, 6 deletions
extension/Documentation/UsersManual/Index.rst
with
7 additions
and
6 deletions
extension/Documentation/UsersManual/Index.rst
+
7
−
6
View file @
1fb7a2a8
...
...
@@ -1187,21 +1187,22 @@ Type: upload
* See: https://www.w3.org/TR/html5/forms.html#file-upload-state-(type=file)
* parameter:accept: *image/*,video/*,audio/*,.doc,.docx,.pdf,<mime type>*
An upload element is based on a file browse
button and a
delete button
. Only one of them is shown at a time.
The file browse
button is displayed, if there is no file uploaded already.
The trash
button is displayed, if there is file uploaded already.
An upload element is based on a
'
file browse
'-
button and a
'trash'-button (=delete)
. Only one of them is shown at a time.
The
'
file browse
'-
button is displayed, if there is no file uploaded already.
The
'
trash
'-
button is displayed, if there is
a
file uploaded already.
The user can than select a file from the local filesystem.
After choosing the file, the upload starts immediately, shown by a turning wheel. When the server received the whole file
and accepts the file, the browse
button dissappears and the filename is shown, followed by a
delete
button.
and accepts the file, the
'file
browse
'-
button dissappears and the filename is shown, followed by a
'trash'-
button.
Either the user is satisfied now or the user can delete the uploaded file (and maybe upload another one).
Until this point, the file is cached on the server but not copied to the final destination. The user have to save the
current record, either to finalize the upload or to delete a previous uploaded file.
* *FormElement*. *parameter*:
* *fileDestination*: Destination where to copy the file. A good practice is to specify a relative `fileDestination` -
such an
installation (filesystem and database) are moveable.
* *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 `fileDestination` should contain the original filename, the variable *{{_filename}}* can be used. Example ::
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment