Hi!
I'm using the latest snapshot of Metastorage. The generated code doesn't
contain function named MetabaseCreateLOB(). So the bug is probably in
generation scripts. If you tell me where, I could upload the generated
code too.
I get the fallowing error:
Fatal error: Call to undefined function MetabaseCreateLOB() in
C:\Program Files\EasyPHP 2.0b1\www\uus\components\Fileshare\File.php on
line 376
Code I'm running is:
if(isset($_FILES['file']) && $_FILES['file']['size'] > 0){
$fileName = $_FILES['file']['name'];
$tmpName = $_FILES['file']['tmp_name'];
$fileSize = $_FILES['file']['size'];
$fileType = $_FILES['file']['type'];
$ff = &$f->newFile();
$ff->name = $fileName;
$ff->description = '';
$ff->setFileData($tmpName);
$ff->owner = $u->id;
$s = $ff->save();
$c->addFile($ff);
$c->save();
}
}
Class definition for File is:
<class>
<name>File</name>
<variable>
<name>name</name>
<type>text</type>
<length>64</length>
</variable>
<variable>
<name>fdata</name>
<type>largedata</type>
<binary>1</binary>
</variable>
<variable>
<name>uploadtime</name>
<type>timestamp</type>
<autocreate>localtime</autocreate>
</variable>
<variable>
<name>description</name>
<type>text</type>
<length>255</length>
<multiline>1</multiline>
</variable>
<variable>
<name>owner</name>
<class>WebUser</class>
</variable>
<collection>
<name>categories</name>
<class>FileCategory</class>
<reference>files</reference>
</collection>
<function>
<name>setFileData</name>
<type>setlargedata</type>
<parameters>
<variable>fdata</variable>
<file>
<argument>filePath</argument>
</file>
</parameters>
</function>
<function>
<name>save</name>
<type>persist</type>
</function>
</class>
[Non-text portions of this message have been removed]