I have a custom field "File" which for some reason is not displaying the file. However, it is being uploaded correctly. The functionality is working fine just the display looks corrupted and if i try to download it it comes up as its not supported.
I have done the following steps:
- Checked the Safe File Extensions, that is configured correctly.
- Replaced the /CRM & /templates folder.
- Checked the path where the files are stored (files/civicrm/custom/), i can view the images here and it doesn't come up as corrupted.
- Checked the database and it is all put correctly.
The Code for the file is being displayed like this:
<td class="crmf-custom_277_7">
<a href="/civicrm/file?reset=1&id=26&eid=2&fcs=ec389ea37b95642675519d22c181498543740964824c3dbb9cb80c2c483e714b_1574332030_168" class="crm-image-popup" title="carmstrong.jpg"></a>
</td>
When i click on it, the file is being downloaded as a corrupted image file.
Image of the how it appears in the UI: