[turba] Uploading Photos
Jan Schneider
jan at horde.org
Tue Nov 25 17:12:57 UTC 2008
Zitat von "John H. Bennett III" <bennettj at thebennetthome.com>:
> Quoting Jan Schneider <jan at horde.org>:
>
>> Zitat von "John H. Bennett III" <bennettj at thebennetthome.com>:
>>
>>> I'm running horde 3.3 and turba 2.3 and need some help
>>> understanding what it takes to get a photo uploaded.
>>>
>>> In my turba/config/sources.php, I have these lines:
>>> 'photo' => 'object_photo',
>>> 'phototype' => 'object_phototype',
>>>
>>> I have $cfgSources['localsql'] - I'm trying to save the photo in mysql
>>>
>>> I have verified in mysql in the turba_objects table that
>>> object_photo | blob
>>> object_phototype | varchar(10) | YES
>>>
>>> Now when I try to upload a photo, I choose my file, click upload,
>>> things appear to work, I click save, but I don't see the photo.
>>>
>>> The file is a JPG file, is there a size limit on the file?
>>
>> Only the limits due to php configuration. Though the
>> object_phototype columns seems a bit small.
>>
>> Jan.
>>
> Thanks for responding Jan, but I need some more help in
> troubleshooting why this isn't working for me.
>
> From turba/scripts/sql/turba.sql, these are the field definitions
> for the two photo fields.
>
> object_phototype VARCHAR(10),
> object_photo BLOB,
>
> I see no errors in my messages or httpd logs when uploading the
> photo. The photo is only a 158K JPG file.
And what *is* in the database after the upload?
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the turba
mailing list