I keep getting the following message

"A file must be provided. If you tried uploading a file, make sure it's less than the upload size limit."

I have created a php.ini file on the root directory

upload_max_filesize=250M ;
post_max_size=250M ;

What else do you guys thing i should do in order to upload up to 150MB...

Thanks in advance

Comments

cog.rusty’s picture

Practically impossible with PHP. You would need a memory_limit larger than these (see http://php.net/ini.core, the note about post_max_size), which normally is too much.

That is why methods using java or flash are used for large uploads, such as http://drupal.org/project/swfupload

jtroshani’s picture

I am not sure if this is Drupal problem. Could it be Web hosting problem as well?

Before we were able to upload very easy 98 or 115 MB audio files. Now we can not even upload a 30 MB audio file. This was not a problem before with the upload size, all of the sudden we started getting the message.

"A file must be provided. If you tried uploading a file, make sure it's less than the upload size limit."

Thank you very much for your input.

cog.rusty’s picture

What do you mean "before"? Did something change?

A few things to check:
- Run a phpinfo() to see what your php memory_limit is (see http://drupal.org/node/59680). You can also see if the settings that you mentioned are actually used. It is possible that by using a php.ini file containing only those two lines, all other php settings were reset to php's default, and the memory_limit became just 8M.
- If you are uploading using the upload module included in Drupal, check the admin/settings/uploads page for any Drupal upload limits. If you are uploading with some other module, check if it has its own settings page.
- If you can upload small files, and only large files fail, do a few test uploads to find out what the size limit is.

If you can't upload any files at all, check the 'files' and 'temp' paths in the admin/settings/file-system page and make sure that those directories exist and are writable by the web server (permissions 777). Also check the admin/logs/status page for any warnings about the file system.

jtroshani’s picture

Regarding...

"- If you can upload small files, and only large files fail, do a few test uploads to find out what the size limit is."

I am using audio module to upload mp3-s

I am able to upload up to 20-30MB no more that, before i could esaly upload audio files up to 115 MB

No problem with the webhosting...

aj045’s picture

You might contact your host to see if they've adjusted their policies about uploads. They may have so they can preserve bandwidth.