I'm using Drupal 4.2-RC on PHP 4.3.2/Apache2.

When I'm using modules that involve file upload (event, filestore, etc.) the file information isn't parsed properly, resulting in an upload error.

I believe it has to do with the transition to Register Globals Off.

For example, when uploading an image onto an event,
three values are placed on a form :
&nbsp On the form, Drupal assigns values into the global array "edit"
so that each value is specified as
  • id
  • caption
  • file

.

&nbsp
  • edit[id]
  • edit[caption]
  • edit[file]

.

When the form is processed,
the result should be something like this:
&nbsp What I have observed is that I now get two disjointed arrays:
  • $_POST["edit"]
    • id
    • file
      • name
      • tmp_name
      • size
      • type
      • error
    • caption
&nbsp
  • $_POST["edit"]
    • id
    • caption
  • $_FILES["edit"]
    • name
      • file
    • tmp_name
      • file
    • size
      • file
    • type
      • file
    • error
      • file

Code processing stops because it cannot find the edit[file] array where it should be.

Could just be my setup, but I'm sharing this info just the same.

FYI

Comments

Dries’s picture

Component: base system » modules
killes@www.drop.org’s picture

This was indeed due to the transition to register globals = off. It is fixed now.