Hi Prakash,
I tried the stuff but did not worked, if possible could you please explain how could i get the file uploaded using my custom form and upload it into gwpm_gallery folder. I tried below code
function upload_func($user_id,$my_files) {
$galleryObj = new GwpmGalleryVO() ;
$galleryObj->gwpm_gallery_img = $this->rearrange($my_files) ;
$galleryObj->deletedImages = explode(",", $_POST["deletedRows"] ) ;
$galleryObj->userId = $user_id;
$this->_model->updateGallery($galleryObj);
$this->set('success_message', 'Images uploaded successfully!!');
}
and for now i have added this code into GwmpGalleryController.php and when the user clicks on register button i called this function using
$my_new_gall = new GwpmGalleryController;
$my_new_gall->upload_func($user_id,$uploadedfile);
but, it shows me error when i am trying to upload the file.
Any help will be appreciated.
Thanks
@saurabhj91
Sorry for delay in response,
Could you please enable the Developer mode options to true as in below
define(‘DEVELOPMENT_ENVIRONMENT’, true);
define(‘GWPM_ENABLE_DEBUGGING’, true);
in the file gwpm_config.php
this will log all the transactions in /tmp/gwpm_error.log in your server. please post the error details from there so that it will be useful to debug