PubNub allows you to share videos, images, or documents of up to 5 MB with the use of Files feature. Log in to your admin account and go to key set configuration page to enable it.
Sending a file is very similar to publishing a message; you need to specify the channel and provide the actual file to send. Additionally, you can include text to use as a caption for the file.
To receive files, a client must add a listener for file messages and be subscribed to a channel the file is being sent to.
To learn more about sharing files, go to:
In case of any questions, contact us at email@example.com.