Jpeg preview (handling file uploads) - both methods failing

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

Jpeg preview (handling file uploads) - both methods failing

Postby klosowski » Fri Jun 01, 2012 1:05 am

Hi,
I recently started to use xataface , in Mysql/PHP i'm under intermediate but not completely nooby. I have installed xataface and created (automaticly) database interface app for my db "pisma" . There's a table "pism" . It will simply store letters . Fields "ID" , "From" , "To" , "Date" , "Preview"(jpeg scan) and "Comments" .
1. So first i tried with blob . Gave attributes to "Preview" Type = LongBLOB , created "Preview_mimetype" and "Preview_filename" Type= varchar (as in the documentation) . Creating new records = ok ,but not seeing "Preview" field ,just "Preview_mimetype" and "Preview_filename" . Images got uploaded (i see them in phpmyadmin) but while trying to preview in xataface :"handleGetBlob() should not be called statically, assuming $this from incompatible context in ....." . No way i can translate this error to human language ;)
2. Tried with second method. Everything went well ,files are uploaded , link in "Preview" field ok, but when i'm trying to open i get a blank page (i think URL is correct = ....../index.php?-table=pism&-action=browse&-cursor=0&-skip=0&-limit=30&-mode=list&-recordid=pism%3FID%3D1 ) . Very funny thing about it : When adding new record i get a blank page too (URL=...index.php?-action=edit&-table=pism&LP=%3D42&--msg=Record+successfully+saved.).

Problem is hard to diagnose because i don't get error messages (method 2).
Maybe i got it all wrong with types or other attributes (both methods) ... ID(Primary index;INT) , From(INT) , TO(INT) , Date (Date) Preview(LONGBLOB(1meth) , VARCHAR(2meth)) .
Please help.
Thanks in advance
klosowski
 
Posts: 2
Joined: Fri Jun 01, 2012 12:40 am

Re: Jpeg preview (handling file uploads) - both methods fail

Postby Jean » Sat Jun 02, 2012 12:47 am

Hi,
For your blank page, even with
Code: Select all
error_reporting(E_ALL);
ini_set('display_errors','On');

In your index.php, you don't have any error message ?

Jean
Jean
 
Posts: 259
Joined: Wed Nov 07, 2007 1:30 am
Location: Pau, France

Re: Jpeg preview (handling file uploads) - both methods fail

Postby klosowski » Sun Jun 03, 2012 10:28 pm

nothing at all. ;/
klosowski
 
Posts: 2
Joined: Fri Jun 01, 2012 12:40 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 1 guest

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