Author Topic: Uploading Poblem...yes another one  (Read 6940 times)

0 Members and 1 Guest are viewing this topic.

Offline Harvest

  • Pre-Newbie
  • Posts: 1
    • View Profile
Uploading Poblem...yes another one
« on: September 07, 2002, 09:07:44 PM »
2 things, when i try to upload a file it repeatedly tells me to select an imagefile, and to name the file, i fill in the fields every time, but i will not upload the pictures. Plz help!

Offline rroc

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Uploading Poblem...yes another one
« Reply #1 on: June 15, 2005, 09:51:39 AM »
Hi,
I have the exact same problem. But it seems to occur only with larger images. For example, it doesn't work when I upload an image like this:
JPEG Quality: 100%
Size: 2475kb

But if compress the same image a bit(no pixel resize, just better compression) before upload - it works:
JPEG Quality: 90%
Size: 1379kb


...The error(not exactly) I get from the 4images after some time is: "Select an Image File!"

So it seems that there could be some problem with bigger files, or the time it takes to download those...

I have these settings for uploads, and Auto resize & Auto thumbnail both ON:

Image File:
Max. File Size: 3000 kb
Max. Image Width: 800 px
Max. Image Height: 800 px
Thumbnail File:
Max. File Size: 200 kb
Max. Image Width: 150 px
Max. Image Height: 300 px

And in phpinfo() I can read:
max_execution_time   420
safe_mode   Off

...and PHP is running as CGI.

Any ideas would be preciated. :)

Offline boatman9999

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Uploading Poblem...yes another one
« Reply #2 on: June 15, 2005, 10:16:45 AM »
There is generally a 2Mb filesize limit on PHP servers (defined by the php.ini file). So any file larger than 2mb will not be uploaded by the server.

See http://www.4homepages.de/forum/index.php?topic=6840.0

Offline rroc

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Uploading Poblem...yes another one
« Reply #3 on: June 15, 2005, 11:11:23 AM »
Thanks! It worked for me, when I increased the upload file size. For other users with 'CPanel' based hosting, it is possible to put an overriding 'php.ini' file to some directory. It affects in that dir and all subfolders.

I created php.ini -file with the following content:

Code: [Select]
;----------------------------------
;php.ini override
;----------------------------------
max_execution_time = 420  ; Maximum execution time of each script, in seconds (7secs)
upload_max_filesize = 5M  ; Maximum allowed size for uploaded files.

Offline arck

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Uploading Poblem...yes another one
« Reply #4 on: November 30, 2005, 11:05:56 PM »
In wich directory you put de PhP.ini with the modifications,,,how,,,,i want to upload big video files in the gallery,,,thanks in advance

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Uploading Poblem...yes another one
« Reply #5 on: December 01, 2005, 12:06:19 AM »
In wich directory you put de PhP.ini with the modifications

this works not with every server! ask the server admin how to set up the "max_execution_time" and "upload_max_filesize" for your webspace...