---
title: "Comment by Arshil Vahora on \"Upload a file to Pinata\" | Hashnode"
description: "When you make pinata upload request from frontend it will expose your Pinata keys, right?"
url: "https://hashnode.com/posts/upload-a-file-to-pinata/638e748d48501f826691d455/comment/66dbf79e530f4456aea8c121"
---

[Discussion](https://hashnode.com/posts/upload-a-file-to-pinata/638e748d48501f826691d455)

Comment [Upload a file to Pinata](https://hashnode.com/posts/upload-a-file-to-pinata/638e748d48501f826691d455)

[Arshil Vahora](https://hashnode.com/@arshil1804)

[Sep 7, 2024](https://hashnode.com/posts/upload-a-file-to-pinata/638e748d48501f826691d455/comment/66dbf79e530f4456aea8c121)

When you make pinata upload request from frontend it will expose your Pinata keys, right?

[Atharva Deshpande](https://hashnode.com/@ParZivaL35)

[Sep 7, 2024](https://hashnode.com/posts/upload-a-file-to-pinata/638e748d48501f826691d455/comment/66dbf79e530f4456aea8c121#reply-66dc3ea89bc556614c61fbf8)

Yes that is correct unless you are using nextjs and its server side architecture which then hides the env variables.

[Arshil Vahora](https://hashnode.com/@arshil1804)

[Sep 7, 2024](https://hashnode.com/posts/upload-a-file-to-pinata/638e748d48501f826691d455/comment/66dbf79e530f4456aea8c121#reply-66dc3f3ab442a1196323579e)

Yes, that was my only doubt. Thanks, great content
