You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

You want to add upload functionality to your application.

Step-by-step guide

To build this functionality the following steps have to be taken.

  1. Define a connection name and distinguish whether it should be in memory or on a file system. In this cookbook it will be 'connection1' which uploads files to a file system. The aquima.properties file has to be extended by the following entry:

    connection.connection1.file.path=D:/AQ_File_Upload
  2. Create an entity 'File' in your model.
  3. Create at least one attribute: File.Id. For convenience add also File.Name, File.Type and File.Size.
  4. Create an event called 'UploadAction'.
  5. Create an exposed flow.
  6. Create a page which is put in the flow and is connected.
  7. Create a container of type AQ_File_Upload (and put it at the page) with the following parameters:

    ParameterValueComments
    Connectionconnection1 
    PersistenceTemporary 
    ModeMultiple files 
    FileInstanceFileThe name of the entity defined in step 2.
    FileIDFile.Id 
    FileNameFile.Name 
    FileTypeFile.Type 
    FileSizeFile.Size 
  8. Click the tab 'Events' and select the event 'UploadedAction' at the 'FileUploaded' parameter.
  9. xxxxxx

 

 

 

 

 

  • No labels