Image Uploads problem

Archived from the Xataface Users forum.

yokai — Thu Oct 07, 2010 8:55 am

Hi Steve,

I posted earlier on the wrong section of the forum. However, this report is the same. I have problem geting image upload to work.
When I store content in database directly, image does not display, when I use the second method, I get a blank page.

Below is content of fields.ini

[photo]
Type = container
widget:type = file

Please assist.


shannah — Thu Oct 07, 2010 9:03 am

Not enough info to help with the first problem (image in database). For the second problem it is likely that your upload directory is not writable by the web server. In both cases you should refer to your error log to see what the problem is.

-Steve


yokai — Thu Oct 07, 2010 9:33 am

Hi Steve,
For the quick response. Below is what I see in the web server logs

[Thu Oct 07 15:22:50 2010] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/images, referer: http://localhost/els/index.php?-action= … ully+saved.

Wonder why its looking for the image in this path c:/wamp/www/images

Following the tutorials I saved the image under the table_name/field_name/ .
Any ideas ?


yokai — Sat Oct 09, 2010 10:42 am

Hi Steve,
Its working now. I had to add a field photo_mimetype to the db table and that was it.
Thanks for your assistance.