Problem with Attachment (SOLVED)

Post Reply
shandybt
Posts: 53
Joined: 29 Jul 2016, 12:31
Name: Shandy Banyutresna
Location: Indonesia, Jakarta
Company Name: PT. Kimia Farma
Contact:

Problem with Attachment (SOLVED)

Post by shandybt »

Dear Sergey,

I've been updated to 2.7 now I have a problem with my attachment field, my table won't show or appear error 500 if I add a record to my entity which is has a file or images attached.

herewith I attach the error log file and entity screenshot
Screen Shot 2020-06-21 at 19.01.19.png
error_log.zip
(2.75 KiB) Downloaded 143 times
thank you
Last edited by shandybt on 27 Jun 2020, 09:43, edited 1 time in total.
User avatar
support
Site Admin
Posts: 6231
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Problem with Attachment

Post by support »

Make sure you are using php 7.2
Also find php error log on your server and check it.
Also this error can be related to SSL. Make sure you are using https and option ENABLE_SSL enabled in config/server.php
shandybt
Posts: 53
Joined: 29 Jul 2016, 12:31
Name: Shandy Banyutresna
Location: Indonesia, Jakarta
Company Name: PT. Kimia Farma
Contact:

Re: Problem with Attachment

Post by shandybt »

Dear Sergey

My PHP version is 7.2
Screen Shot 2020-06-26 at 15.33.27.png
I've been setting the SSL to True
Screen Shot 2020-06-26 at 15.32.20.png
But when I add a record, the entity won't save my data
Screen Shot 2020-06-26 at 15.30.37.png
This is my error log
Screen Shot 2020-06-26 at 15.38.25.png
please help
User avatar
support
Site Admin
Posts: 6231
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Problem with Attachment

Post by support »

You have an error "undefined function mime_content_type"
See https://stackoverflow.com/questions/458 ... ntent-type
You have to enable fileinfo php extension
Contact your hosting support about this.
shandybt
Posts: 53
Joined: 29 Jul 2016, 12:31
Name: Shandy Banyutresna
Location: Indonesia, Jakarta
Company Name: PT. Kimia Farma
Contact:

Re: Problem with Attachment

Post by shandybt »

It's Awesome, my problem is solved.

thank you sergey you are the best
Post Reply