Upload Limit Question - Urgent

Permalink
I have a question about Upload Limits for files. I've already searched the forums for help, but I can't find any of the described files.

So, how can you increase the file upload limit? I can upload most small files, but I'm guessing the limit is around 2 MB and I want to increase that.

Here's a scenario of what happens:

I try uploading this 6 MB file, and it says it has finished uploading, but doesn't actually appear in the file manager. I waited for a few minutes... and still nothing.

So I need to increase the limit, and the web host I use has unlimited file space and bandwidth.

Elmzran
 
tcmfan replied on at Permalink Reply
tcmfan
Try adding this in .htaccess file placed in concrete5 installation directory:

php_value upload_max_filesize 32M
Elmzran replied on at Permalink Reply
Elmzran
Could you define the actual path of where the
.htaccess is?
frz replied on at Permalink Reply
frz
.htaccess is a file in the root of your web space. it might not exit, or it might be hidden by your ftp client. If you're not using apache it will probably be something else.

what he's telling you is this is a PHP setting not a concrete5 one. Another approach would be to just ask your webhost to bump up your PHP file upload limits.
Elmzran replied on at Permalink Reply 1 Attachment
Elmzran
When I went to to check the .htaccess file, it was completely empty, no text at all. Not sure if that's normal... but anyways, I went ahead and added the code:

php_value upload_max_filesize 32M


And then when I went back to my website and my dashboard, I got this error, which I attached in this image.
jelthure replied on at Permalink Reply
jelthure
you might need a few other settings to get things to work.
strefarytmu replied on at Permalink Reply
Solution: DON'T surround it with <?php ?>. Just put this plain line in .htaccess:

php_value upload_max_filesize 32M

Explanation:
I know this is confusing but I'll try to clarify. There are three pieces of software involved: concrete5, php, and web server (most likely Apache). You already know that upload_max_filesize is a php setting. There are several ways of changing php settings:

* in a running php program (not all settings can be changed with this method):

<?php ini_set("name", $newValue); ?>


* in the php configuration file, most likely named php.ini. Important: the php.ini file is NOT written in the php language! It just consists of raw lines that look like this:

upload_max_filesize = 32M

* you can also do it even more indirectly by telling your webserver to pass configuration settings to php. This time you will be editing a server configuration file, and .htaccess is just that. Of course .htaccess isn't a php file either, and it uses yet another syntax: that of Apache configuration files. The directive to pass a configuration setting to PHP is called php_value, and the whole syntax looks like this:

php_value upload_max_filesize 32000000

I am not sure whether shorthand notation like 32M is supported with the .htaccess method so I just put the raw number of bytes.

Hope this helps.
ScottC replied on at Permalink Reply
ScottC
make a folder under webroot/files/ called incoming.

upload your stuff to that then import using the "more" then add from incoming.

I have loaded in some large files using this method and it works well. 30mb is no problem.

the php value also uses max_post_size since files are posted, but it has been easier to create and use the incoming folder instead of messing around with all of that stuff.
Elmzran replied on at Permalink Reply
Elmzran
Thanks for the help guys, even though I eventually figured it out on my own :)
I think ScottC's way is more efficient with the even larger files.