I am trying to upload video in server using Codeigniter, In the localhost i can do it, but when in the server it does not work. Even though do_upload()
function returns true.
When i'm testing the server root, print_r($_SERVER['DOCUMENT_ROOT']);
it returns
/var/www/mjpp/data/www/supps.mydomainname.com
Also the
$updata = $this->upload->data();
returns
[file_path] => /var/www/mjpp/data/www/supps.mydomainname.com/public/video
Can you tell me why /var/www/mjpp/data/
is appearing before my main domain name , and is it the cause of any error for uploading video?
Thank you in advance, sorry for my bad english.