Problem with file type field
Posted: Wed Jan 06, 2010 10:55 am
I have included the following field definition in the INI file for a table:-
[image]
visibility:list = hidden
widget:description = "Image file (N.B. Must be type JPG)."
widget:atts:size = 80
Type = container
widget:type = file
allowed_extensions = jpg
savepath = ../images/events
url = /images/events
When attempting to edit a record the following message appears at the top of the page:-
Warning: mime_magic: invalid mode 027774671400. in /home/sites/fairangelevents.co.uk/public_html/xataface-1.1.5/Dataface/Record.php on line 2216
When attempting to save the record with a file to upload, the above message plus the message below are displayed:-
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/fairangelevents.co.uk/public_html/xataface-1.1.5/Dataface/Record.php:2216) in /home/sites/fairangelevents.co.uk/public_html/xataface-1.1.5/actions/edit.php on line 189
What is most puzzling is the fact that I have lifted the INI file data straight from another project where everything works fine. Only the savepath and url are different.
Can anyone help please?
Regards,
Andrew Perry.
[image]
visibility:list = hidden
widget:description = "Image file (N.B. Must be type JPG)."
widget:atts:size = 80
Type = container
widget:type = file
allowed_extensions = jpg
savepath = ../images/events
url = /images/events
When attempting to edit a record the following message appears at the top of the page:-
Warning: mime_magic: invalid mode 027774671400. in /home/sites/fairangelevents.co.uk/public_html/xataface-1.1.5/Dataface/Record.php on line 2216
When attempting to save the record with a file to upload, the above message plus the message below are displayed:-
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/fairangelevents.co.uk/public_html/xataface-1.1.5/Dataface/Record.php:2216) in /home/sites/fairangelevents.co.uk/public_html/xataface-1.1.5/actions/edit.php on line 189
What is most puzzling is the fact that I have lifted the INI file data straight from another project where everything works fine. Only the savepath and url are different.
Can anyone help please?
Regards,
Andrew Perry.