Is this possible with image upload:
dynamic name folders , I want create path user/id from table
Resize image and rename if file already exists in folder
You can achieve this using on_insert / on_update event.
// use events if you need custom logic for upload
$e["on_insert"] = array("add_invoice", null, true);
// var g is new jqgrid()
// callback for add
$upload_file_path = $data["params"]["note"];
// get file name
$f = pathinfo($upload_file_path);
// assuming userid is in session
$userid = $_SESSION["userid"];
// move file to userid folder
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?