# How to set file extension

**URL:** <https://community.thunkable.com/t/how-to-set-file-extension/1521237>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [September 23, 2021, 4:55am UTC](https://community.thunkable.com/t/how-to-set-file-extension/1521237 "2021-09-23T04:55:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pccchon05246g](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@pccchon05246g](https://community.thunkable.com/u/pccchon05246g)\
**Post date:** [September 23, 2021, 4:55am UTC](https://community.thunkable.com/t/how-to-set-file-extension/1521237/1 "2021-09-23T04:55:24Z")

</div>

hi  
i need helpT-T

I would like to know how to write a code to define the file extension to be posted in the app. I want the app can post only png files picture.

thank you very much

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 23, 2021, 5:15am UTC](https://community.thunkable.com/t/how-to-set-file-extension/1521237/2 "2021-09-23T05:15:48Z")

</div>

What do you mean by “post”? You can either upload images in Thunkable or you can host them on another site such as Cloudinary. Either way, you determine which format and file extension to use.

---

<div class="post-metadata">

**Author:** ![pccchon05246g](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@pccchon05246g](https://community.thunkable.com/u/pccchon05246g)\
**Post date:** [September 23, 2021, 6:57am UTC](https://community.thunkable.com/t/how-to-set-file-extension/1521237/3 "2021-09-23T06:57:55Z")

</div>

I’m trying to build an app. collection of png images I want to set the file extension for people who use the app to post only png. But my group doesn’t know how to write code.T-T

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 23, 2021, 5:01pm UTC](https://community.thunkable.com/t/how-to-set-file-extension/1521237/4 "2021-09-23T17:01:08Z")

</div>

I would recommend allowing users to upload in any format they like and then doing the conversion in Cloudinary:

[https://cloudinary.com/cookbook/converting\_an\_image\_format](https://cloudinary.com/cookbook/converting_an_image_format)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:15pm UTC](https://community.thunkable.com/t/how-to-set-file-extension/1521237/5 "2024-11-08T13:15:06Z")

</div>


