Ir para o conteúdo

Sending a file to the visitor

The Chat Platform service allows you to exchange files (images, documents) in a dialogue between the agent and the visitor. When uploading a file to the dialogue, it is necessary to take into account the features that will be discussed in this article.

Sending a file to the visitor

To send a file, click the button highlighted in red in the following illustration:

Selecting a file to send to the visitor

  1. Click on the clip icon enclosed in a frame on the screenshot.
  2. In the window that opens, select the file to send.
  3. Double-click on the file or click on the Open button to send the file.

The file upload will begin.

Allowed file name (characters, name length)

When uploading a file by the agent in the Chat Platform service, the file name does not have any restrictions on length or characters used.

When uploading a file by a visitor from a webpage, the file name also does not have any restrictions on length or characters used.

Sending files between agent and visitor (from the visitor's perspective)

Types of uploadable files

An agent can send files of any type (documents, audio, video files, etc.).

Visitors can only send files of specific types (png, jpg, jpeg, doc, rtf, gif, txt, pdf, docx, webp, oga, ogg) media types (image/png, image/jpeg, image/pjpeg, application/msword etc.). If an attempt is made to send a file of a type (media type) not specified in these parameters, a corresponding system message will appear in the dialogue.

File size

The maximum allowed size of a file to be sent by a visitor is determined by the account config settings. By default, the value is set to 10 MB.

Additionally, there is also a restriction on the file size on the web server nginx (provides connection of Chat Platform components to the Internet network). If the size of the sent file corresponds to the value in the account config, but exceeds the value specified in the nginx settings (by default, 10 MB is specified), the file will not be sent and a corresponding system message will appear in the dialogue. This restriction applies to both visitors and agents.

Conclusion

` In conclusion, when uploading a file in the dialogue, the agent does not have any restrictions on the name of the file being sent and its type, but has a restriction on the size of the file being sent, which is determined by the internal settings of the Chat Platform Server.

Visitors have restrictions:

  • On the permissible characters when sending a file through a mobile application that implements the Chat Platform interface
  • On the type (media type) of files being sent
  • On the size of the file being sent - the value can vary from 0 to 10 MB (the value of the maximum size is determined by the internal settings of the Chat Platform Server)