Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

tina4 save file to database in orm

//Save a block on content to table , field name is content
$page->saveBlob("content", $request->params["content"]);
//Save an uploaded file to field name image, field type is longblob / blob in the database
$page->saveFile("image", "image"); //expecting $_FILES["image"]
 
PREVIOUS NEXT
Tagged: #save #file #database #orm
ADD COMMENT
Topic
Name
2+8 =