⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Uploading Video File fails on remote server



engr zardari
  • profile picture
  • Member

Posted 22 October 2013 - 09:28 AM

Hi,

 

I am new user of CI, my project was to develop a site, in which the videos are uploaded from admin panel...i used grocery crud (version 1.4.1) for uploading videos....that is working perfectly on my local machine but on remote server it fails,the field of uploading file disappears when video file reaches 100%, Please help me in this regard....i can provide more details and code also if needed.

 

1 - i changed the permission on remote in the directory where i am uploading the videos, the permissions set to 777 now,

 

2 - in    C:\wamp\www\application\config\grocery_crud.php  i also made changes on remote server as $config['grocery_crud_file_upload_max_file_size'] = '1024MB';.

 

3- i made changes in php.ini file, on local machine, but don't find any file on server like php.ini

 

4 -  the videos in flv and mp4 format which i am going to upload

 

 

 

Thanks in advance

 

 

 


briggers
  • profile picture
  • Member

Posted 22 October 2013 - 09:45 AM

Hi engr zardari
 
If you are on a shared server it is most unlikely that you will be able to change the php.ini file. However you may be able to override its settings by adding some lines to the .htaccess file in the root directory of your site.
Try adding:
 
php_value upload_max_filesize ?M
php_value post_max_size ?M
php_value max_execution_time 200
php_value max_input_time 200
 
Setting ? to the value that you want to set as a maximum.
 
If that does not work you will need to contact your host to get them to allow you to override the php.ini settings.

 


engr zardari
  • profile picture
  • Member

Posted 23 October 2013 - 21:04 PM

thanks briggers..

 

actually i made a file php.ini and uploaded that file to public_html on my remote server with the contents like that.

 

php_value upload_max_filesize 200M
php_value post_max_size 200M
php_value max_execution_time 600
php_value max_input_time 600

 

and i got help from these links

 

http://www.madgenius.com/portal/knowledgebase/38/Increase-your-Memory-Limit-via-htaccess-or-phpini.html

cleardot.gif