Author Topic: Can't upload 2+Mb pictures  (Read 4511 times)

0 Members and 1 Guest are viewing this topic.

Offline dkb

  • Pre-Newbie
  • Posts: 3
    • View Profile
Can't upload 2+Mb pictures
« on: October 25, 2002, 03:43:56 AM »
Hello.  I am unable to upload jpg file greater than 2Mb to my site.  Any jpg files less than 2Mb uploads fine.  I have set the max image size to 5000Kb in the control panel.  I have also verified that the setting is in the settings table in mysql.  
The line in images.php that fails is around line#423 which is

Code: [Select]

if (((empty($HTTP_POST_FILES['file_'.$i]['tmp_name']) || $HTTP_POST_FILES['file_'.$i]['tmp_name'] == "none") && $remote_file == "") || ($remote_file != "" && !check_remote_media($remote_file) && !check_local_media($remote_file))) {


The Add images window that pops up after the image is uploaded says:

Please recheck the marked fields.

And under the Image 1 table cell header it has:
Image *

I have not been able to trace this back any further yet.  Any ideas?

PHP Version 4.1.2 with mysql Client API version 3.23.39
mysql  Ver 11.15 Distrib 3.23.47, for apple-darwin5.2 (powerpc)
Server version: Apache/1.3.26 (Darwin)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Can't upload 2+Mb pictures
« Reply #1 on: October 25, 2002, 08:09:50 AM »
Check "upload_max_filesize" in your php.ini. I guess it's set to 2MB.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline dkb

  • Pre-Newbie
  • Posts: 3
    • View Profile
Can't upload 2+Mb pictures
« Reply #2 on: October 25, 2002, 05:23:38 PM »
Thank you.  That was the problem.. Perhaps this info could be displayed in the settings tables.  For those that may not have access to your php.ini I added this code in settings.php right after:
Code: [Select]
 show_table_separator($setting_group[4], 2, "#setting_group_4");


Code: [Select]
  $val = ini_get("upload_max_filesize");
  show_description_row("PHP max upload file size: $val");


just as a quick hack..

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: Can't upload 2+Mb pictures
« Reply #3 on: May 24, 2005, 09:04:08 PM »
I had the same problem  8O

@ dkb - this version does not work  :?

I asked my Provider, he said that I have to change the .htaccess like this one here http://www.4homepages.de/forum/index.php?topic=6840.0

And now I can upload Files larger than 2MB  :lol: I´m so happy  :lol:

Project offline

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Can't upload 2+Mb pictures
« Reply #4 on: May 25, 2005, 12:06:04 AM »
this topic is only 2.5 years old...:lol:

P.S. maybe u'll find this helpfull for your signature ;)
http://www.4homepages.de/forum/Themes/default/help/posting.english.html#bbcref
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: Can't upload 2+Mb pictures
« Reply #5 on: May 25, 2005, 07:08:38 AM »
All right, but I don´t wanna make a new topic - I am old-fashioned  :lol:

Cu somewhere in this Forum...

Project offline