Upload files in database

A place for users and developers of the Xataface to discuss and receive support.

Upload files in database

Postby Rrrr7 » Fri Dec 14, 2012 7:42 am

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 ?
Rrrr7
 
Posts: 14
Joined: Fri Dec 14, 2012 7:37 am

Re: Upload files in database

Postby Rrrr7 » Sat Dec 15, 2012 3:39 pm

Found it myself !
Fields _mimetype and _filename must be set as Null by default in the database.
Rrrr7
 
Posts: 14
Joined: Fri Dec 14, 2012 7:37 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved