File upload action

The file upload action lets a user pick one or more files from their device and upload them. This action can be set to any clickable element such as a button.

How to find it?

  1. Select an element and navigate to the
    Actions tab. Search Upload File from actions dropdown search field.
  2. The user can set restrictions from uploading a specific type of file from ASSIGN EXTENSIONS OR MIME TYPES field. For example, if you want to allow uploading only a pdf file, add .pdf to the field. After this user can’t select other file types except pdf files for uploading. You can add more extensions or mime types separating with commas if needed. Note that malicious visitor can upload any file and this doesn't restrict it.
  3. From DOWNLOAD URL VARIABLE dropdown, you can select interaction variables. When a file is uploaded, the download url of the uploaded file is set to the selected variable automatically. You can then use the variable as needed depending on the use cases. One of the cases could be for example, sending a download url with the form submission. 
  4. In SELECT A ROOM dropdown, you can set what room to use for uploading files. By default, it uses an active room. The selected room setting allows you to encrypt the file by adding encryption key to the room.
  5. It is also possible to show different views when file upload is in progress, when uploading is successful and when there is any error during the uploading process. 

Use file upload action in a chat message

If the variable is not selected, you can also use upload file action in a chat message. Follow following steps to use file upload action in chat message:

  1. Create an interaction and set upload file action. Choose Send only as a chat message option from Download url variable dropdown. Set the rest of the properties as needed.








  2. In the publishing setting, set INTERACTION TYPE to Sent by agent in chat option and publish.



  3. Then in new giosg or chat window, click on + icon and select send interaction option.












  4. Search the interaction that was published with file upload 
    action
    and send it to the visitor.  Then the visitor uses the interaction and uploads the file which is then sent to the agent.











  5. Once a visitor uploads the file, the agent can see it in chat.