How-to

Portal How-to: Enabling Files

2 min read Oliver Carson on May 26, 2022
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

Follow this step-by-step how-to on enabling files in your PubNub portal.

What is Files?

PubNub’s Files feature allows you to upload and share files. You can send and receive videos, images, or documents of up to 5 MB in size. These files are managed by the Message Persistence storage service, which means it’s possible to perform operations on files by using the History API when enabling Message Persistence.

When a file is uploaded on a channel, it’s stored and managed using a storage service and is associated with your key. Subscribers to that channel receive a file event that contains a file ID, filename, and optional description.

Follow along with the video or read the step-by-step guide to learn how to enable Files in your PubNub keyset. You can also check out PubNub’s official documentation on Files to learn more about how you can implement Files in your own application.

Follow Along

Watch the video below or follow the step-by-step instructions to learn how to enable files. Need extra information? Check out PubNub’s official documentation on files to learn more about how to enable files in your own application.

Step-by-Step

  1. Login to the Admin Portal.

  2. Click on the apps tab on the left hand side of the portal.

  3. Click on an application. You will be brought to the keysets page for this application.

  4. Click on a keyset. You will be brought to the configuration page for this keyset.

  5. Enable Message Persistence by clicking on the slider to turn it on.

    1. Message Persistence is needed to be able to perform operations on files using the History API when using an SDK.

  6. Enable Files by clicking on the slider to turn it on.

  7. Choose the region where you would like to store your files in the Bucket Region drop-down that matches where the region your application is hosted in.

  8. Select a time period in the Retention drop-down for which files will persist in storage. It is recommended to use the shortest time period that is required for your application.

  9. Click on Save Changes to save these updated changes.

More from PubNub

Building a Core Product Strategy that Meets a Market Need
News Jun 1, 20221 min read

Building a Core Product Strategy that Meets a Market Need

Patrick Ng, Innovation Director at Spark Launchpad, joins Casey Clegg, COO at PubNub, to discuss effective ideation and the...

PubNub Staff

PubNub Staff

Can Empathy Exist in the Metaverse
News May 16, 20221 min read

Can Empathy Exist in the Metaverse

A roundtable discussion led by PubNub’s COO, Casey Clegg, exploring the topics of what it means to be human in a virtual world.

PubNub Staff

PubNub Staff

How to Advance Telehealth and Virtual Care Technologies
News May 2, 20221 min read

How to Advance Telehealth and Virtual Care Technologies

Dr. Joe Kvedar, Chair of the Board for the American Telemedicine Association, joins our COO, Casey Clegg, to discuss why...

PubNub Staff

PubNub Staff