I have problem when i use phpgrid in codeigniter with upload file. When without CI, my code working very well.
How if i want to save the file in database?
FYI, i use Oracle.
To save file in DB, you need to write custom code with on_insert OR on_update event handlers.
// use events if you need custom logic for upload
$e["on_insert"] = array("add_invoice", null, true);
// callback for add
$upload_file_path = $data["params"]["note"];
This callback contains the filename with path, that is uploaded. You can read it's content using file_get_contents and execute a SQL to save in database.
In CI, the querystring are removed by default to make user friendly urls. That may be causing the issue.
try appending QSA in htaccess, when it sends requests to index.php. There may be other cases, but you need to debug using firebug & print_r($_POST); inside code.
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!