You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

Tags

Interaction

Type of accelerator

Example project to demonstrate Blueriq functionality and accelerate your learning journey. 

How to get
Compatibility

Blueriq 17.7 and higher

Description

This example project illustrates the file upload mechanism, with all its related actions. This example shows how to:

  • upload multiple files,
  • download a file,
  • update a file,
  • delete a file and
  • move to another connection.

Below a screenshot is shown of this example:

When uploading, files will be uploaded in memory by default in this example. By clicking on 'Download' the file will be downloaded. The button 'Delete' triggers the delete service. By clicking 'Update' it is possible to upload a new file. This file upload should be in single mode, because the file still holds the same id. It is also possible to edit some custom fields that will be stored in the instance.

The 'Move to File System' button will move the specified file from memory (connection1) to the file system (connection2). After clicking this button, the move service will create a folder as specified in connection2. In this folder two sub folders are created:

  1. DATA
  2. METADATA

Ad 1) In this folder the file itself will be saved. The file name will be the id.

Ad 2) In the METADATA folder an XML file will be stored containing the meta data information. The file name will also be the id.

Configuration

To be able to run this example project a few settings need to be configured upfront.

JAVA

  1. First the connections must be specified. This can be done by adding the following lines to the application.properties file.

    blueriq.connection.onfilesystem.filesystem.path=C:/UploadedFiles/
    blueriq.connection.onfilesystem2.filesystem.path=C:/UploadedFiles2/

References

For more information see also How to handle multiple files.

Version History

ChangesCompatibility minimal Blueriq versionpackage
  • updated container definition
  • added relation
  • added validation rule to the relation
  • added page commit button
17.7FileUpload-Trunk.workspace.json
  • initial version
16.0FileUploader.package.zip

3 Comments

  1. Unknown User (8a8bc4485bebf09a015bf175e8b90003)

    The article says that there's an example project ready to import, where can we download that zip file?

  2. Hi Andres,

    Example projects are Blueriq models which demonstrate Blueriq functionality. They are included in the standard Blueriq library which is shipped with Blueriq. You can view, run and extend these projects by creating a new project and use an example project as a starting point.

     

    Does this answer your question?

    1. Unknown User (8a8bc4485bebf09a015bf175e8b90003)

      Hi Roel,

      Thanks, yes that's a right answer!