I have two very large .flv video files that I need to upload into a CCK content type. Is there anyway to create the pieces of content without uploading the videos from the web interface, then upload the videos and attach them to this piece of content through the "back end?" I'm having trouble uploading them through the web interface Create Content function, I think because of the size. Any suggestions would be appreciated. Thanks.

Comments

betz’s picture

Well you could look at the max upload size in your php.ini file

Other nice thing is to install the PECL Uploadprogress php plugin
http://pecl.php.net/package/uploadprogress

i25’s picture

My php.ini file doesn't have anything about a max upload size. The only reference to upload is ./upload_tmp_dir = /t (have no idea what that means).

betz’s picture

do a search for 'max'

i25’s picture

This is the only max I have in php.ini:
max_input_time = 60

I've also tried editing both php.ini and .htaccess following these instructions and I still get the "8MB" max upload note under the field where I upload the videos:
http://drupal.org/node/97193

Antiquitties’s picture

Hi!

Check if there's a limitation under administer -> content types -> your content -> manage fields -> manage this field; look for File size restrictions.

Other simple checks are:
1. restart server to take the new setting
2. use this script to check if your modification with upload_max_filesize worked

  phpinfo();

Copy the code in a php file and run it in the browser on the same server.

3. Try changing the location of the php.ini file (copy it to theme folder or web root folder maybe?)

i25’s picture

Ok,
So I added the following code to php.ini:
upload_max_filesize = 100M ;
post_max_size = 200M ;

I then ran the php info test and it still has upload_max_filesize as 8M.

Antiquitties’s picture

Try to put the php.ini in the root folder. See more info here: http://drupal.org/node/125252

i25’s picture

I just tried that it didn't help. Do I need the semi-colons at the end of the lines of code? I've noticed that nothing else has semi-colons in the php.ini file.

Antiquitties’s picture

Or are you using a hosting provider, because they might have additional restrictions.

i25’s picture

Yes... I'm using GoDaddy.

Antiquitties’s picture

Because if you make a change to php.ini, then you need to do a restart (/sbin/service httpd restart).
See here also http://help.godaddy.com/article/1409 (I think he's on dedicated though, you're probably on shared ?)

I found on another forum that the linux box for Godaddy accepts php5.ini custom. So try this: rename php.ini to php5.ini and run that info script again. Maybe it will work.

I would open a ticket with GoDaddy. I did it with HostGator and they were very happy to assist me.