2MB file limit in Gallery2 - is info update needed in FAQ?
ekendra
![]()
Joined: 2004-11-11
Posts: 8 |
![]() |
Hello there. I'm really impressed with Gallery2 and its modular structure. I've upgraded from version 1 and am runnign into a bit of difficulty uploading 6 Megapixel images over 2MB. I searched for a solution (of course :wink: ) and found this: Quote:
Why can't I upload big files (over a megabyte or two)? This seems helpful but specific to gallery 1 as I cant seem to find any .htaccess file in the new version. Gallery 1 had it in the root directory. So is this information still relevent to Gallery 2 ?? I've already had my administrator bump the upload limit up to 16MB so that shouldn't be any sort of issue. How to get around this one so I can upload pics over 2MB (essential for how I'm using Gallery) ?? ---- |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
you can create a .htaccess file in the gallery2 dir. |
|
ekendra
![]()
Joined: 2004-11-11
Posts: 8 |
![]() |
mindless wrote:
you can create a .htaccess file in the gallery2 dir. so just in the root dir same as gallery 2? anything specific need to go into it? is there some outline of what control i can have via the .htaccess ? (parameters, etc..) |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
http://www.php.net/manual/en/configuration.php |
|
ekendra
![]()
Joined: 2004-11-11
Posts: 8 |
![]() |
I created an .htaccess file as suggested (see attached file) and i uploaded it to the main gallery2 directory. did i enter the parameters correctly because it still seems to block pics over 2MB in size from uploading? here's whats inside the .htaccess file: php_value post_max_size 128M php_value upload_max_size 128M frustrating this one. also some of the instructions in the FAQ are not relevant to gallery2 (the third step in particular as there is no file by that name - if i missed it then someone please let me know where it is ???) any help would of course be greatly appreciated. ekendra :roll: |
|
sumirp
Joined: 2005-08-19
Posts: 2 |
![]() |
Hey ekendra, You need to put both 128M in quotes. Should look like this: php_value post_max_size "128M" php_value upload_max_size "128M" |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
not really. |
|
ekendra
![]()
Joined: 2004-11-11
Posts: 8 |
![]() |
??? |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
meaning you don't put quotes around 128M sumirp's post was the first I'd ever seen or heard of doing that. If you can't override your post_max_size or upload_max_size via .htaccess then your host has configured their setup so those values cannot be overridden. Good luck finding a reference to wrap that value in quotes: |
|
sumirp
Joined: 2005-08-19
Posts: 2 |
![]() |
http://www.extrosoft.com/content/view/23/30/ I may be totally wrong, just something I read and tried and it worked for me... |
|
shoobeedoodoo
Joined: 2004-01-11
Posts: 78 |
![]() |
Any other suggestions for this? I'm having the same problem in uploading video clips over 2 MB. Any help would be greatly appreciated. Thanks, |
|
RalphTheWonderLlama
Joined: 2005-07-16
Posts: 68 |
![]() |
I didn't have to edit/add any .htaccess files to get mine to work. I didn't have any in my RC1 install either. See my thread on how I fixed it here: This link helped especially. The only change was to php.ini since there were no .htacces and add_photo.php files. |
|
likoma
Joined: 2005-07-07
Posts: 10 |
![]() |
The problem may be with your host. I did all of the steps above and I could get the 128 MB batch limit changed, but not the 2 MB (per image/movie) changed. Finally, I used "From Web Page" and I uploaded the 4 MB movie to another folder that wasn't blocked by permissions (i.e. not inside my albums--I couldn't seem to change permissions on those folders anyway) and then it worked fine. http://www.totalchoicehosting.com/forums/index.php?showtopic=4673&view=findpost&p=146704 Hope this saves someone else some time! - Bradley |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Yes, your host can restrict those values from being changed. If you need those limits changed and you can't with .htaccess or don't have access to php.ini then, as likoma, states, you need to find a new host. |
|
likoma
Joined: 2005-07-07
Posts: 10 |
![]() |
Or ask your host nicely. ;-) My host upped the limit to 8 MB when I asked, which is fine with me. Anything bigger and I'm happy to do the "From Web Page" method--it's a lot less work than changing hosts (in my case). |
|
iampedro
Joined: 2003-12-10
Posts: 41 |
![]() |
So my host just up'd my limit to 10 mb so that means I can upload pictures the size of 10 meg's correct? Or is that my limit of the amount I can upload or what? Gallery2 dosen't have a limit of what I can upload it is just the amount that I upload is limited to each file would be now be at least 10 meg's a piece correct? |
|
gcshum
Joined: 2007-02-13
Posts: 35 |
![]() |
Just a guess. You may have to restart Apache server. |
|
SJ073
Joined: 2007-06-28
Posts: 6 |
![]() |
Bumping these two values up (post_max_size and upload_max_size) in the php.ini in my PHP binary folder and then restarting IIS worked for me. After restarting IIS and logging back into the gallery you can see the quota was updated to reflect the new values. Thanks for the information! |
|