# (File Form Field Type) does not work

**URL:** <https://forum.mautic.org/t/file-form-field-type-does-not-work/19640>\
**Category:** Product Support\
**Created:** [May 28, 2021, 3:22am UTC](https://forum.mautic.org/t/file-form-field-type-does-not-work/19640 "2021-05-28T03:22:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![acremonezi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/acremonezi/32/1681_2.png) [@acremonezi](https://forum.mautic.org/u/acremonezi)\
**Post date:** [May 28, 2021, 3:22am UTC](https://forum.mautic.org/t/file-form-field-type-does-not-work/19640/1 "2021-05-28T03:22:31Z")

</div>

**Mautic:** v3.3.3  
**PHP:** 7.3.27  
**MariaDB:** 10.5  
**Docker:** v19.03.13  
**Traefik:** v2.3.1

**How to reproduce:**

1 - I created a data base custom field type “ **URL** ” called “ **curriculo** ”. Picture bellow:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/3df27b5affe16e2e087e3b0cdcf2b722c03f63df.png)

2 - I created a form field type “ **file** ” as bellow:

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/ebeac42eb275e7f88b656c78fe4451491fded074.png)

**My problem is:**

**Issue 1:** When I submit the form the Bottom show: “Please Waiting…” and do not redirect to the “Thank you page” post sucessfull submit.

**Issue 2:** When I go to the Contact record to see the file uploaded by the form, it does not show the full URL to download it. It saves into mautic /media/ folder but do not record the full URL. Screenshot bellow:

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a66324dd13b0712afc7745833d173fc71b6fef73.png)

**Important Information:** I have another installation of mautic version v2.16.3 and it works very well.

Please any suggestion of how to fix it?  
Thanks in advanced for any comments or help.

---

<div class="post-metadata">

**Author:** ![acremonezi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/acremonezi/32/1681_2.png) [@acremonezi](https://forum.mautic.org/u/acremonezi)\
**Post date:** [May 30, 2021, 5:04am UTC](https://forum.mautic.org/t/file-form-field-type-does-not-work/19640/2 "2021-05-30T05:04:11Z")

</div>

Done!

The reason it happens is becouse the oficial docker image is mission the exif php extention.  
I have done this `docker-php-ext-install exif` inside the container and the issue was solved.

It is a know issue, already reported here:

> <https://github.com/mautic/docker-mautic/issues/197>
>
> Hello,
> 
> Mautic nead EXIF to work whith files field in forms.
> 
> Error log:
> \`m…autic.CRITICAL: Uncaught PHP Exception Symfony\\Component\\Debug\\Exception\\UndefinedFunctionException: "Attempted to call function "exif\_imagetype" from namespace "Mautic\\FormBundle\\Helper"." at /var/www/html/app/bundles/FormBundle/Helper/FormUploader.php line 154 {"exception":"\[object\] (Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException(code: 0): Attempted to call function \\"exif\_imagetype\\" from namespace \\"Mautic\\\\FormBundle\\\\Helper\\". at /var/www/html/app/bundles/FormBundle/Helper/FormUploader.php:154)"} \[\]\`
> 
> ADD this \`docker-php-ext-install\` exif docker file 
> 
> Thanks..!

Thanks a lot!  
Best regards!
