note4

Thursday, September 6, 2018

2:52 AM
Sample Add Before record or edit before record event viewer




// get information about uploaded files

$fileArray = my_json_decode($values["contenturl"]);



// rename files

for($i = 0; $i < count($fileArray); $i++)

{
//

Will Dsiplay video_jba1u74y.mp4

Will Not Show anymore in your database like this
[{"name":"files\/digital_video\/video_jba1u74y.MP4","usrName":"scs.mp4","size":4930942,"type":"video\/mp4","searchStr":"SCS.MP4,!:sStrEnd"}]


 //ileArray[$i]["name"] = "";
//ileArray[$i]["usrName"] = "";
//sileArray[$i]["searchStr"] = "";

$values["url_video"] = "http://localhost/".$fileArray[$i]["name"];

}



// update values of the field that stores file names



// Place event code here.
// Use "Add Action" button to add code snippets.

return true;

0 comments: