⚠ 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

Video Upload Problem



aemalsayer

aemalsayer
  • profile picture
  • Member

Posted 22 June 2012 - 12:31 PM

I am new to GC and CI but have 10+ years of software engineering experience in other tools, I would simply say that Grocery CRUD is FANTASTIC! tool for CRUD operations.

I am using the following code to create a video gallery on my website:

function videos()
{
$crud = new grocery_CRUD();


$crud->set_table('videos');
$crud->set_relation('VideoGalleryID','videogalleries','VideoGalleryName');
$crud->display_as('VideoGalleryID','Video Gallery')
->display_as('VideoPath','Video')
->display_as('VideoBrief','Video Brief');
$crud->set_subject('Videos');


$crud->set_field_upload('VideoPath','assets/uploads/files');

$output = $crud->render();

$this->view_page("crud_page",$output, "Videos");
}

The function view_page is displaying the content of $ouput in a template (header.php and footer.php) files.
I am facing a problem in the video upload, when I add a new video file the progress percent gets complete and then no error message comes but the file doesn't get uploaded. I checked the configuration files, the file size and format was correctly configured.

Attached is the screen shots of the issue with explanation.

Thanks in advance for your support!

fdias

fdias
  • profile picture
  • Member

Posted 22 June 2012 - 12:42 PM

Are you able to upload other filetypes? If not then I suggest you check permissions for the upload directory (needs to be writable).

web-johnny

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 22 June 2012 - 22:12 PM

Can you send me the mp4 file to info@grocerycrud.com ? I want to test it at my local PC to see if it's the file's problem, server problem or grocery CRUD problem.

Thanks.

Mohammed Zayan

Mohammed Zayan
  • profile picture
  • Member

Posted 22 October 2012 - 15:20 PM

I have the same problem
What should I do??!!

casachit

casachit
  • profile picture
  • Member

Posted 14 November 2012 - 10:18 AM

hi everyone,

I am also facing same problem. In my case, it is pdf document. I checked on server...max upload file size limit is 16MB and my document is 12.3MB . I have set directory to 777. But after completion I get no alert of errors ... jus blank like in image uploaded by aemalsayer

Mohammed Zayan

Mohammed Zayan
  • profile picture
  • Member

Posted 16 November 2012 - 08:14 AM

what should I do to solve it?

victor

victor
  • profile picture
  • Member

Posted 16 November 2012 - 08:32 AM

Hi all!
Try change the .htaccess file.
add this strings

php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value max_execution_time 0
php_value max_input_time 0

Mohammed Zayan

Mohammed Zayan
  • profile picture
  • Member

Posted 16 November 2012 - 09:33 AM

.htaccess file or php.ini file??

victor

victor
  • profile picture
  • Member

Posted 16 November 2012 - 09:34 AM

.htaccess

Mohammed Zayan

Mohammed Zayan
  • profile picture
  • Member

Posted 16 November 2012 - 09:37 AM

This is my .htaccess file
where should I put your code?


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ELC_traning/ELC_Admin/
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>

victor

victor
  • profile picture
  • Member

Posted 16 November 2012 - 09:38 AM



php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value max_execution_time 0
php_value max_input_time 0
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ELC_traning/ELC_Admin/
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>

victor

victor
  • profile picture
  • Member

Posted 16 November 2012 - 09:40 AM


AddDefaultCharset utf-8
php_value upload_max_filesize 2000M
php_value post_max_size 2000M
php_value max_execution_time 0
php_value max_input_time 0
php_flag magic_quotes_gpc off
RewriteEngine on

RewriteBase /
RewriteCond $1 !^(index\.php|public|images|plugins|files|admin_files|sliders|auth_files|videos|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

this is my .htaccess

victor

victor
  • profile picture
  • Member

Posted 16 November 2012 - 09:46 AM

what result do you have?

Mohammed Zayan

Mohammed Zayan
  • profile picture
  • Member

Posted 16 November 2012 - 13:44 PM

I put this .htaccess


AddDefaultCharset utf-8
php_value upload_max_filesize 2000M
php_value post_max_size 2000M
php_value max_execution_time 0
php_value max_input_time 0
php_flag magic_quotes_gpc off
RewriteEngine on

RewriteBase /ELC_traning/ELC_Admin/
RewriteCond $1 !^(index\.php|public|images|plugins|files|admin_files|sliders|auth_files|videos|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]


I have
[b] Object not found![/b]

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the [email="postmaster@localhost"]webmaster[/email].
[b] Error 404[/b]
localhost
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7

victor

victor
  • profile picture
  • Member

Posted 16 November 2012 - 13:46 PM


php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value max_execution_time 0
php_value max_input_time 0
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ELC_traning/ELC_Admin/
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>

Sam Stha

Sam Stha
  • profile picture
  • Member

Posted 01 February 2013 - 15:13 PM

i have the same problem... other files do upload.. but cant upload video files. i have also checked file size.. if i upload mp4 it outputs 1, if i upload flv file it shows nothing.. no error
what should i do?

Jaqueline Fernandes

Jaqueline Fernandes
  • profile picture
  • Member

Posted 10 February 2016 - 21:05 PM

i have the same problem... but i need upload small file!! please.. help

My php.ini and crocery_crud.php they are already set.