|
- Overview
- Control in a dynamic or static page
- Creating an Upload control
- Control characteristics
- Remarks
- Multi-file Upload control in AWP
- Various
- Maximum size of files to upload
Control in a dynamic or static page The Upload control is used to upload files on the Web server. WEBDEV proposes an advanced Upload control that can be used immediately. It includes several controls (that can be deleted if necessary): - Looper used to manage the files to upload. This looper is used to specify the file characteristics, to display a progress bar during the upload and to propose a button used to delete the file from the list if necessary.
- Caption indicating where the files to upload will be dropped.
- "Add" button used to add the files.
- "Send" button to start the file upload.
This control can be used in singlefile mode or in multifile mode. Remarks: Versions 22 and laterIn the earlier versions (before version 22), WEBDEV proposed two preset Upload controls (control used to upload a single file and control used to upload several files). - These controls are still operating in version 22 and later. The only difference with the control proposed in version 22 is the composition of the control (a looper in version 22 and later) and its interface.
- These controls propose the generation in HTML 5 mode in version 22 (new feature of version 22, see Control characteristics).
New in version 22In the earlier versions (before version 22), WEBDEV proposed two preset Upload controls (control used to upload a single file and control used to upload several files). - These controls are still operating in version 22 and later. The only difference with the control proposed in version 22 is the composition of the control (a looper in version 22 and later) and its interface.
- These controls propose the generation in HTML 5 mode in version 22 (new feature of version 22, see Control characteristics).
In the earlier versions (before version 22), WEBDEV proposed two preset Upload controls (control used to upload a single file and control used to upload several files). - These controls are still operating in version 22 and later. The only difference with the control proposed in version 22 is the composition of the control (a looper in version 22 and later) and its interface.
- These controls propose the generation in HTML 5 mode in version 22 (new feature of version 22, see Control characteristics).
- The Upload edit control is kept for backward compatibility. See File upload for more details.
Versions 22 and laterThe preset control proposed for the upload is an asynchronous control: You still can continue to use the current site without being locked by the upload. New in version 22The preset control proposed for the upload is an asynchronous control: You still can continue to use the current site without being locked by the upload. The preset control proposed for the upload is an asynchronous control: You still can continue to use the current site without being locked by the upload.
Creating an Upload control To create an Upload control: - In the page editor, on the "Creation" pane, in the "Usual controls" group, expand "Button".
- In the list that is opened, select the control type "File upload".
- Click where you want to create the control in the page. The control appears in the page.
To display the control characteristics, select "Description" in the popup menu of the Upload control ("Send" or "Add"). The WLanguage code for upload management is found in the processes associated with the Upload control. This code can be modified according to your requirements. Important: The "Receiving the uploaded files" process must be modified before deploying the site. A code sample is supplied in comment. This code can for example: - copy the uploaded files into a specific site directory,
- insert the uploaded files into a binary memo, ...
See Events associated with an Upload control for more details. Control characteristics Several specific options are available in the "Details" tab of the Upload control description (accessible via the description of the "Add" button): Versions 22 and laterUse the native HTML5 upload: The code generated to manage the upload uses HTML5. This generation mode of control allows you to use the Upload control in sites available on all platforms (including the mobile platforms that do not support flash). New in version 22Use the native HTML5 upload: The code generated to manage the upload uses HTML5. This generation mode of control allows you to use the Upload control in sites available on all platforms (including the mobile platforms that do not support flash). Use the native HTML5 upload: The code generated to manage the upload uses HTML5. This generation mode of control allows you to use the Upload control in sites available on all platforms (including the mobile platforms that do not support flash). Versions 22 and laterUse an upload based on Flash: The code generated to manage the upload uses Flash. In this case, the upload will not be available on platforms that do not support flash. New in version 22Use an upload based on Flash: The code generated to manage the upload uses Flash. In this case, the upload will not be available on platforms that do not support flash. Use an upload based on Flash: The code generated to manage the upload uses Flash. In this case, the upload will not be available on platforms that do not support flash.- Multi-file selection: allows the multiselection in the control. If this option is not checked, only the upload of a single file will be possible.
- Encrust the caption in the image: used to insert the button caption into the image associated with the button.
- Management of Drag/Drop: Used to allow "Drag and Drop" from the Windows explorer. See Managing Drag and Drop of files to an Upload control (HTML5) for more details.
Versions 22 and laterNotes about the generation type of upload: - If the Upload control is created in version 22, the option "Use the native HTML5 upload" will be automatically selected in an HTML5 page.
- If the Upload control was created with an earlier version (preset singlefile or multifile Upload control), you also have the ability to use the generation in HTML 5 format.
New in version 22Notes about the generation type of upload: - If the Upload control is created in version 22, the option "Use the native HTML5 upload" will be automatically selected in an HTML5 page.
- If the Upload control was created with an earlier version (preset singlefile or multifile Upload control), you also have the ability to use the generation in HTML 5 format.
Notes about the generation type of upload: - If the Upload control is created in version 22, the option "Use the native HTML5 upload" will be automatically selected in an HTML5 page.
- If the Upload control was created with an earlier version (preset singlefile or multifile Upload control), you also have the ability to use the generation in HTML 5 format.
Multi-file Upload control in AWP A multi-file Upload control in AWP implicitly creates an AWP context on disk. This type of control is not compatible with the management of contexts via cookies. See Managing AWP contexts for more details. Various - If the Upload control is based on Flash ("Use an upload based on Flash" checked in the "Details" tab), it will require Flash player (version 9 or later) on the user's computer.
- The Upload control cannot be used in an Ajax looper.
Maximum size of files to upload By default, the size of files to upload is not limited in the WEBDEV engine. This size can be limited: - by the Web server used. See the documentation about the Web server used for more details.
- by WEBDEV application server.
The file will not be uploaded if its size exceeds the limit size. To modify the maximum size of the files to upload in the WEBDEV application server, the registry must be modified on the server. This modification can be performed for all the WEBDEV applications. To modify the size of the uploaded files for all the WEBDEV applications: - Select the following registry key:
- On a 64-bit computer: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PC SOFT\WEBDEV\26.0
- On a 32-bit computer: HKEY_LOCAL_MACHINE\SOFTWARE\PC SOFT\WEBDEV\26.0
- Add the MAX_UPLOAD key. The value of this key corresponds to the maximum size of files to upload (in KB).
Remark: A limit linked to the Web server (IIS, Apache, ...) can also exist. For example, for IIS, you have the ability to edit the XML "%windir%\system32\inetsrv\config\applicationhost.config" file and to create or modify the "maxAllowedContentLength" attribute of "requestLimits" tag by specifying the size in bytes. Example to set the limit to 50 MB in IIS:
<system.webServer> <security> ..... <requestFiltering> ..... <requestLimits maxAllowedContentLength="52428800"/> </requestFiltering> ....
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |