Gossamer Forum
Home : Products : Gossamer Links : Discussions :

BLOB field in Links table

Quote Reply
BLOB field in Links table
Hi, all

I'm trying to modify LinksSQL to adjust it for photos DB. So, i add field Photo MEDIUMBLOB in my Links table. Also i modify Links::User::Add->add_link - to add field 'Photo' in $input hash (i.e. $input->{'Photo'}).
Also i check that $input->{'Photo'} really gets the picture wich i do upload from add.html.
But LinksSQL doesn't insert this field in DB.

Does anybody knows - why?

Thank you,
Anton.
Quote Reply
Re: [Anton_P] BLOB field in Links table In reply to
Hi,

As far as I know, The photo field will be saved as text which is the path of the uploaded image on your server.

Hope that helps

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] BLOB field in Links table In reply to
Thank you, Tandat,

i know this, but the problem is not that i cannot get this field from client, but that i cannot insert it in DB. Field $input->{'Photo'} contains exactly what i need, but LinksSQL does not insert this field in DB.

Also this question is offtopic (i confused Forums.. this question about LinksSQL, not Links 2.0)

Anton.