Page 1 of 1

Upload files in database

PostPosted: Fri Dec 14, 2012 7:42 am
by Rrrr7
Hi,
This is my first post here, so I'm a newbie.

I'm trying to upload files into database using the BLOBL type, I have created the 3 columns as in the documentation, File - longblob, File_mimetype and File_filename in the table but when I go and try to actually save the record by clicking the Save button I get this error :

Invalid information entered.
- File mimetype is a required field.
- File filename is a required field.
Please correct these fields.


What am I doing wrong ?

Re: Upload files in database

PostPosted: Sat Dec 15, 2012 3:39 pm
by Rrrr7
Found it myself !
Fields _mimetype and _filename must be set as Null by default in the database.