Multiple File Upload (PRO version)

With MX Kollection 3 Professional you will be able to add multiple file upload capabilities without any hand coding. In MX Kollection 3 you could upload a single file to the server, and save its name in the database, or rename the file using a rename rule. With the Multiple File Upload, the record specifies the dynamic name of the folder where to store the files.

To use the multiple file upload feature, perform the following steps:

  1. Create an Insert/Update operation on your page. You can do this by using the Insert/Update Record Form Wizard, or by manually creating the form and adding the desired server behaviors.
  2. Access the server behavior from the Application panel, Server Behaviors -> + -> MX Kollection -> File Upload -> Multiple File Upload.
  3. Configure the user interface to suit your particular needs.
  4. Save the page and test it into the browser by selecting a file to upload.

 

When submitting a page that has file upload capabilities added through MX Kollection 3 Professional, the Transaction Engine handles it in the following way:

  1. Each of the files is uploaded to the server in a temporary folder, as they are selected.
  2. The Insert/Update transaction is executed first in order to add into the database A database refers to data organized and stored on a computer that can be searched and retrieved by a computer program. Most industrial-strength and many smaller database applications can be addressed using SQL (Structured Query A query is a SQL command that will extract information from the tables of a database. Essentially, a query is a request for information from your database. Language). all fields.
  3. After the insert or update operation ended successfully, the subfolder to store the files is created using the specified rename rule, and the files are moved to the specific folder. If the transaction failed due to any reason, the folder is not created and the files are not copied.                                
  4. If no other errors were raised when working with the files and folders, everything ends here. Otherwise a rollback will be performed on the transaction, so that no invalid data will be stored in the table.
 
This section contains the following topics: