# Import Csv file from server

**URL:** <https://community.gravityforms.com/t/import-csv-file-from-server/13630>\
**Category:** Get Help\
**Tags:** custom, csv, validation, entry-import\
**Created:** [October 13, 2022, 7:29pm UTC](https://community.gravityforms.com/t/import-csv-file-from-server/13630 "2022-10-13T19:29:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaya262627](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kaya262627](https://community.gravityforms.com/u/kaya262627)\
**Post date:** [October 13, 2022, 7:29pm UTC](https://community.gravityforms.com/t/import-csv-file-from-server/13630/1 "2022-10-13T19:29:27Z")

</div>

Hello, I want to use Gravity Form plugin on my own site.  
There is a Csv file on the server and the file is updated every 20 seconds.  
I want to get the file from the server and create a validation form with the information in it.  
How can I get the file from the server, I couldn’t understand that part. Where should I start can you help me?  
Thank you Best regards.

---

<div class="post-metadata">

**Author:** ![sacom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/sacom/32/53_2.png) [@sacom](https://community.gravityforms.com/u/sacom)\
**Post date:** [October 14, 2022, 2:25pm UTC](https://community.gravityforms.com/t/import-csv-file-from-server/13630/2 "2022-10-14T14:25:38Z")

</div>

Gravity Forms doesn’t provide any specific function to get files from the server, you need to do that with your own standard PHP code. Doing a quick search I found the following third-party article providing some examples: [Read a CSV to an Array in PHP](https://code.tutsplus.com/articles/read-a-csv-to-array-in-php--cms-39471)

Once you have that ready, the following filters can be used for validation:

> **[gform\_field\_validation](https://docs.gravityforms.com/gform_field_validation/)**
>
> Use this filter to create custom validation logic for a field.

> **[gform\_validation](https://docs.gravityforms.com/gform_validation/)**
>
> The "gform\_validation" filter allows custom validation logic to be used by Gravity Forms when a form is submitted. This allows more granular validation of fields than the default validation used.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [October 15, 2022, 6:39pm UTC](https://community.gravityforms.com/t/import-csv-file-from-server/13630/3 "2022-10-15T18:39:23Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
