Don't know exactly if is a bug related with your code or with Media Browser.

But if you have configured a subdirectory for saving your uploaded images, this subdirectory is not used after you have created a new content with images.

(with Media file selector widget works as expected)

Any suggestion?

Comments

fangel’s picture

I think this is an issue with the Media browser, and not just this modules use of it, but I'll try and look into it.

fangel’s picture

Status: Active » Closed (duplicate)

This is actually an issue with PLUpload - it doesn't have support for uploading to anything but public://.

I've created a bug-report for PLUpoad: #1776300: Respect field settings like minimum - maximum size when used as image field - so please chime in there too.

gmclelland’s picture

@fangel - do you have any idea on the status of this is? I'm having a trouble following the issues.

Just an fyi... I currently can't seem to specify a "File directory" on image fields. If I do specify a directory, ex. "galleries" then only the first image is uploaded on a multivalued(unlimited) image field and I don't believe the image is uploaded correctly. If you look under admin/content/file the files is missing a name. I believe this problem is only with image fields.

To fix the problem - you can manually create a directory called "galleries", then everything will work correctly UNLESS you are using Tokens in the "File directory" field. Ex. galleries/[current-date:custom:M-Y] is what I use. The problem is that the directories don't get created, so the files can't be moved into the correct directory.

The way I have to work around this is by using the patch for plupload http://drupal.org/node/1946298#comment-7192092, but that is closed(won't fix).

fangel’s picture

I'm currently at DrupalCon (come say hi if you are too - and can find me) and I don't know off the top of my head. I can investigate when I get back, but it's probably some weird combination of image/file/plupload and a couple other modules...

gmclelland’s picture