Download & Extend

Upload images into a specific OG based on the URL

Project:Multiple Image Upload
Version:6.x-2.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

The module doesn't seem to pick up the arguments to add an image(s) into a group context, e.g. with urls like:
/node/add/image?gids[0]=1439

Comments

#1

Title:og support» Upload images into a specific OG based on the URL
Version:5.x-2.0» 6.x-2.1
Category:bug report» feature request

This is a pretty specific feature, but I think it could be good. It would be nice to do something similar with taxonomy as well.

I think it requires changes to the Java code in addition to the Drupal code, though, which makes it a bit tougher.

#2

As the module has changed quite a bit since the 5.x version, the URLs would be slightly different. This is definitely possible, and no doubt something that other users would benefit from. I'll look into this.

#3

I created #798160: add og data during hook_nodeapi prepare so that a user in one og with og required will get their og as a partial solution to the problem for the organic groups module.

One way to at least enable this functionality without making the imagex module get too bulky is:

  1. Create a hook in imagex_upload_image that is invoked prior to saving the node where other modules can add in some data
  2. Take any $_GET parameters from the imagex/ url and pass them with the requests that actually create the files

The first step would require some refactoring to the functions that actually save the nodes so that they take in more node data than they currently do.

The second step would just allow for passing in arbitrary data via the URL. So, someone could do example.com/imagex?gids[]=123,345&tids=1,7,23&cck_field_name[]=FooBarBaz

And then OG, a taxonomy plugin, and a cck plugin could all react and do the right thing with that data...

#4

@greggles

As you may know, this module has been deprecated due to security concerns. Is it possible that it could be fixed and some of the suggestions you made perhaps implemented?

#5

@friedman - of course that is possible, but as I was evaluating these modules I found the plupload widget and created a Drupal 6 module which has similar functionality to this one http://drupal.org/project/plupload

I won't be working on this module since my effort is going into the more extensible and more broadly supported plupload module.