I saw this module listed here #1399098: The WYSIWYG plugin does not respect File directory path, what options do we have?

When I use the Wysiwyg plugin to open the media browser and upload an item, the file always ends up in /sites/default/files instead of the location specified for that filetype. If you edit the file entity, the file is moved to the correct location on the local filesystem. FE_path also works great when used with a filefield upload instead of the wysiwyg plugin. I'm not sure what is different about the upload from the wysiwyg plugin. I'm also not sure whether this is a problem for Media or FE_paths. Any help/ideas would be appreciated.

Comments

ultimike’s picture

You may want to check out the patch I just posted that (hopefully) addresses your issues: http://drupal.org/node/1645178#comment-6132256

Thanks,
-mike

presleyd’s picture

When I applied that patch and went to admin/structure/file-types/manage/*/file-paths I see the following errors:

Notice: Trying to get property of non-object in fe_paths_admin_form() (line 8 of /www/devel/sites/all/modules/fe_paths/includes/fe_paths.admin.inc).
Notice: Trying to get property of non-object in fe_paths_admin_form() (line 18 of /www/devel/sites/all/modules/fe_paths/includes/fe_paths.admin.inc).
Notice: Trying to get property of non-object in fe_paths_admin_form() (line 26 of /www/devel/sites/all/modules/fe_paths/includes/fe_paths.admin.inc).
Notice: Undefined index: path in fe_paths_admin_form() (line 30 of /www/devel/sites/all/modules/fe_paths/includes/fe_paths.admin.inc).
Notice: Trying to get property of non-object in fe_paths_admin_form() (line 34 of /www/devel/sites/all/modules/fe_paths/includes/fe_paths.admin.inc).
Notice: Undefined index: filename in fe_paths_admin_form() (line 37 of /www/devel/sites/all/modules/fe_paths/includes/fe_paths.admin.inc).
Notice: Trying to get property of non-object in fe_paths_admin_form() (line 46 of /www/devel/sites/all/modules/fe_paths/includes/fe_paths.admin.inc).
Notice: Undefined index: private in fe_paths_admin_form() (line 50 of /www/devel/sites/all/modules/fe_paths/includes/fe_paths.admin.inc).
Notice: Trying to get property of non-object in fe_paths_admin_form() (line 54 of /www/devel/sites/all/modules/fe_paths/includes/fe_paths.admin.inc).
Notice: Undefined index: private in fe_paths_admin_form() (line 57 of /www/devel/sites/all/modules/fe_paths/includes/fe_paths.admin.inc).
ultimike’s picture

The patch was created from the latest version of the 7.x-2.x branch (via git clone --recursive --branch 7.x-2.x http://git.drupal.org/project/fe_paths.git). Make sure you're patching the same version and not something older.

Thanks,
-mike

presleyd’s picture

I did patch the latest snapshot from git.

ultimike’s picture

@presleyd: Which version of Media are you using? I'm using 7.x-1.1

Thanks,
-mike

presleyd’s picture

Ah I see, I'm using Media 7.x-2.x-dev

szantog’s picture

Category: bug » task

I'm on it.

szantog’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.