I just noticed this strange behaviour in a site I am developing on the 2011.6 version.
When using OE to upload an image, selecting the Images folder inside the media library as location, the image is uploaded without problems. BUT - checking in the admin interface I see that all images are assigned to the Standard section.
This is repeated all the time, as long as I upload from OE. When uploading images from the admin interface, the Images are assigned to the Media section, just as they should.
I have been looking into the code for a while now, and believe I have found the source to the problem.
In 2011.6, kernel/classes/ezcontentupload.php, row 633, we find this:
The above is used when the uploaded file needs a new object to attach to.
Checking further into /kernel/classes/ezcontentclass.php, row 260 we find the reason to the problem:
Please note that the param sectionID is set to 1 by default. 1 means Standard, so thats why the images get assigned to the wrong section, I assume.
In comparision with eZ 430, the method called to create the object from ezcontentupload.php was :
Then, in ezcontentclass.php:
So, someone has obviously changed the default value of SectionID. Maybe there is a good reason for that, but from what I can see it creates a quite severe problem.
In 2011.6, use OE to upload images to the media library. Check which section they get assigned to.