Author Topic: Upload doesn't work - no error message...  (Read 4025 times)

0 Members and 1 Guest are viewing this topic.

Offline darthpingu

  • Pre-Newbie
  • Posts: 1
    • View Profile
Upload doesn't work - no error message...
« on: April 15, 2003, 03:13:39 PM »
I have checked safe mode with my host and a php info file, and safe mode is OFF. I also checked the FAQ and search function on these forums.

A user enters the details in the 2 upload boxes (with the browse button). The enter all the other required details and press Submit.

It takes a while (kind looks like it is uploading) then returns the user to the form but with "Select an Image File!" added.

there are no errors on the admin Cp either.

So it kind of looks like its not reading whats in the Upload box. I am really not sure.

Oh and just to be sure I checked the upload form on the admin CP. That does the same thing, but I get the red "Image *" required field error. There is DEF. a valid image in both upload boxes (thumbnail and image)

Any ideas what so ever? It would be really appreciated.
Cheers!

Offline rema

  • Pre-Newbie
  • Posts: 2
    • View Profile
Discovered the same problem
« Reply #1 on: May 22, 2003, 11:00:24 PM »
The same problem also happens to me.

Happens not on all uploads, maybe a problem with the size of the file or special mime types.

By analyzing the HTTP_POST_FILES structure on buggy uploads i discorveres the following:
$HTTP_POST_FILES['media_file']['tmp_name'] is empty and
$HTTP_POST_FILES['media_file']['size'] is zero.

Offline rema

  • Pre-Newbie
  • Posts: 2
    • View Profile
Success!
« Reply #2 on: May 22, 2003, 11:10:38 PM »
Simply adjust the following line in the file php.ini:

; Maximum allowed size for uploaded files.
upload_max_filesize = 20M

Resolved my problem.