# How to upload Base64 data in client side Bubble plugin?

Converting various file types, such as images and PDFs, into base64 strings is an excellent method for storing them in a database. Bubble's File API only permits base64 data uploads, disallowing direct uploads of PDFs and images.

Use the following code to upload Base64 data to Bubble File Manager.

```javascript
context.uploadContent(properties.file_name,base64_data, function(err, url){
                     
                        console.log("URL", "https:"+url);
                        
                    });
```

Do read [this post](https://forum.bubble.io/t/important-information-about-context-uploadcontent/198088) on how to format base64 data before sending it.

---

That's all for this blog. Subscribe for more future updates. Thank you!

Follow me on [Twitter](https://twitter.com/NocodeTalks).

**Checkout My Bubble Plugin Course** - Use coupon code "THEBUBBLEGROUP" at checkout for 10% discount.

%[https://nocodetalks.co/bubbleplugin]
