Jump to content


Video Upload Problem

video upload ci

  • Please log in to reply
16 replies to this topic

#1 aemalsayer

aemalsayer

    Newbie

  • Members
  • Pip
  • 2 posts

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!

Attached Thumbnails

  • GC_Video_Upload_Problem.png


#2 fdias

fdias

    grocery CRUD Addict

  • Members
  • PipPipPip
  • 93 posts

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).

#3 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 999 posts
  • LocationLondon

Posted 22 June 2012 - 10: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.
Posted Image

#4 Mohammed Zayan

Mohammed Zayan

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationEgypt

Posted 22 October 2012 - 03:20 PM

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

#5 casachit

casachit

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

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

#6 Mohammed Zayan

Mohammed Zayan

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationEgypt

Posted 16 November 2012 - 08:14 AM

what should I do to solve it?

#7 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

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


#8 Mohammed Zayan

Mohammed Zayan

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationEgypt

Posted 16 November 2012 - 09:33 AM

.htaccess file or php.ini file??

#9 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 16 November 2012 - 09:34 AM

.htaccess

#10 Mohammed Zayan

Mohammed Zayan

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationEgypt

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>


#11 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

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>



#12 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

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

#13 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 16 November 2012 - 09:46 AM

what result do you have?

#14 Mohammed Zayan

Mohammed Zayan

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts
  • LocationEgypt

Posted 16 November 2012 - 01: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
Object not found!

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 webmaster.
Error 404
localhost
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7

#15 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 16 November 2012 - 01: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>



#16 Sam Stha

Sam Stha

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 01 February 2013 - 03: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?

#17 Jaqueline Fernandes

Jaqueline Fernandes

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 10 February 2016 - 09: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.







Also tagged with one or more of these keywords: video, upload, ci

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users