2005-04-21, 04:44 PM
Hi,
this is my situation:
when I add attachment to post, it seems like everything is OK - only the attachment data is not written into database. The database record is created, but filedata and thumbnail columns stay empty ([BLOB - 0 bytes]).
I searched code and did some tests:
in function checkattachment() I checked if $attachment[whatever] is OK and it seemed it was. The file seemed to be uploaded and all its attributes was available (I mean size, tmp_name etc.) The problem came with calling fopen($attachment[tmp_name], "r"); - it returns false.
safe mode is off. (I dont know if its relevant but ...)
Any ideas?
this is my situation:
when I add attachment to post, it seems like everything is OK - only the attachment data is not written into database. The database record is created, but filedata and thumbnail columns stay empty ([BLOB - 0 bytes]).
I searched code and did some tests:
in function checkattachment() I checked if $attachment[whatever] is OK and it seemed it was. The file seemed to be uploaded and all its attributes was available (I mean size, tmp_name etc.) The problem came with calling fopen($attachment[tmp_name], "r"); - it returns false.
safe mode is off. (I dont know if its relevant but ...)
Any ideas?