File upload limit 2Mb - set by php.ini

Hello,

as it’s stated We do not allow to upload big files (where file size is more than 5 MB) on server
In a backend of my component (Pictures Gallery) there is a statement that Upload file limit is 2Mb - set by [U]php.ini[/U]
I use Joomla. Does anybody know how to increase it up to 5Mb?
Is it on server or somewhere in my file system?

Thanks,
Yuri

uhm. You can find a php.ini file on PHP: Hypertext Preprocessor.
Then you upload your own php.ini (you only need to change the upload size limit) to the root of your account.

I’m not sure if it’ll work…

the limit on this hosting for uploading files is 2Mb, you can check in phpinfo().

But i think is a good size for images, what kind of images are you uploading??? =S

You may be able to set a custom size using a .htaccess file.

Can you please tell me where in .htaccess I should insert such value?

Pictures is not an issue, I have also video and 2Mb is pretty difficult…

thanks. maybe i will postpone this thing as really don’t wanna mess something with server’s adjustments inside of account

I tried with a php.ini on my account. Unfortunately it didn’t work.

Try this in an .htaccess file:

php_value post_max_size 5M
php_value upload_max_filesize 5M

5M can be changed to any variable.

thank you very much.
inserting these lines into .htaccess really does solve the problem!

does that work??? :eek:

oooopsss…:rolleyes:
it really does… is it scary because I became scared… please let me know.

woow, it really is XD

so you can override that server setting? XD

in the beginning of this thread i have cited the words of the administration. they were talking about 5Mb limit, but I wasn’t able to do more than 2Mb on my site.
As soon as it was done by inserting piece of that code into both .htaccess and htaccess.txt (not sure if it was necessary to do both) - then it does work!
by the way, what is XD? (working on my English vocabulary:o)

ok :p, you only need to insert it in .htacces :slight_smile:

and “XD” is like laughing or something like that, :smiley:

I’m kinda amazed that the .htaccess thing works :D.

guys, your friendly laughing is suspicious…
what is funny? please explain.:confused:
maybe it was a joke about .htaccess. well i’m not a pro, but after i changed it, i was able to upload bigger files. maybe it’s not .htaccess but something else.?

no, it’s the .htaccess…

We didn’t thought it would work. But it does. And we are happy about that too.

We’re not trying to make fun of someone here…

thank you, it’s a great relief!
interesting if i will need to upload a file… let say…6Mb…:rolleyes:
how do you think?

You can always upload files through FTP without a filesize limit.

But now we can do it through the browser too. Which is cool.