# Validate file upload to create custom action

**URL:** <https://community.glideapps.com/t/validate-file-upload-to-create-custom-action/57428>\
**Category:** Ask for Help\
**Tags:** actions\
**Created:** [February 2, 2023, 7:51pm UTC](https://community.glideapps.com/t/validate-file-upload-to-create-custom-action/57428 "2023-02-02T19:51:48Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 3, 2023, 2:29pm UTC](https://community.glideapps.com/t/validate-file-upload-to-create-custom-action/57428/4 "2023-02-03T14:29:03Z")

</div>

For validating a file type, I would use a custom form.

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particula…

When users upload a file, you can extract the file type from the URL of the file using JavaScript. Then you can validate using the result of the JavaScript column.

For the JSON part, I’m not sure what you mean. What exact columns/flows are you using to parse the info from the file? Can you provide some screenshots or a video?

---

_[View the full topic](https://community.glideapps.com/t/validate-file-upload-to-create-custom-action/57428)._
