Skip to content
Snippets Groups Projects

Changed Table Person, to include index and auto increment + authExpire default Null

Merged Pascal Rössler requested to merge pascal-jan-doc into develop
4 files
+ 32
21
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -158,12 +158,14 @@ Upload
* 1) A <div> tag with a) an optional filename of an earlier uploaded file and b) a trash button.
* 2) The 'browse' button (<input type='file' name='<feName>'>). This element will not be send by post.
* 3) A HTML hidden element with name=<feName> containing the <sipUpload>.
* A new uniq SIP (sipUpload) will be created for every upload formElement. These 'sipUpload' will be assigned to the upload
browse button and to the upload delete button.
* The individual sipUpload is necessary to correctly handle multiple simultaenously forms when using r=0. Also, through
this uniq id it's easy to distinguish between asynchron uploaded files.
* A new uniq SIP (sipUpload) will be created for every upload formElement. These 'sipUpload' will be assigned to the
upload browse button and to the upload delete button.
* The individual sipUpload is necessary to correctly handle multiple simultaenously forms when using r=0. Also,
through this uniq id it's easy to distinguish between asynchron uploaded files.
* The SIP on the server contains the individual '_FILES' information submitted during the upload.
* Via the hidden element <feName> 'save()', access to the form individual upload status informations is given.
* Via the hidden element <feName> 'save()', access to the form individual upload status informations is given. E.g.
behind the SIP access to '_existingPathFileName', '_feName', '_sipForForm', 'accept', 'maxFileSize' is possible. This
is needed in API upload (check for validity) and save (check if upload already exist).
Upload to server, before 'save'
...............................
@@ -196,16 +198,18 @@ has to be installed. Detection of HEIC/HEIF images are done via `heif-info`, con
Form save
.........
* Step 1: insert / update the record.
* Step 1: insert / update the record.
* Step 2: process all 'uploads'.
* Get every uniq uploadSip (=[STORE_CLIENT][<feName>]) of every upload formElement. Get the corresponding temporary uploaded filename.
* If [STORE_EXTRA][<uploadSip>][FILES_FLAG_DELETE]='1' is set, delete previous uploaded file.
* If [STORE_EXTRA][<uploadSip>][FILES_TMP_NAME]!='': indicates that there is an upload.
* Calculate <fileDestination>
* mv <file>.cached <fileDestination>
* clientvalue[<feName>] = <fileDestination>
* delete [STORE_EXTRA][<uploadSip>]
* Step 3: update record with final <fileDestination>
* Get every uniq uploadSip (=[STORE_CLIENT][<feName>]) of every upload formElement. Get the corresponding temporary
uploaded filename.
* If [STORE_EXTRA][<uploadSip>][FILES_FLAG_DELETE]='1' is set, delete previous uploaded file.
* If [STORE_EXTRA][<uploadSip>][FILES_TMP_NAME]!='': indicates that there is an upload.
* Calculate <fileDestination>
* mv <file>.cached <fileDestination>
* clientvalue[<feName>] = <fileDestination>
* delete [STORE_EXTRA][<uploadSip>]
* Step 3: update record with final <fileDestination>
Download
--------
Loading