hey
i'm loving this module :)

suggesting these features:
- size limits and other settings like in FileField :: file sizes, image sizes, etc :: new/merge
- more fields like in FileField :: other fields attached to the field, like image title text, image alt text, description, additional custom fields :: new/merge
- ui settings like in FileField UI Exras :: be able to show/hide the fields, in fieldsets, with options per field in the content type :: new/merge
- more sources like in FileField Sources :: local file/ftp directory, IMCE?, autocomplete box for everything :: new/merge
- pathing rules like in FileField Paths :: define where to save the files and other settings with tokens :: integration?
- alias rules like in File Aliases :: same for file aliases: integration?
- add insert button to fields, like in Insert :: so we have the "insert" button in wysiwyg, which calls a new upload box, but we dont have one button on the fields :: new/merge
- adding the media with WYSIWYG "insert" button does not add the media to the fields.

not sure if any of these are already on the plans

Comments

lpalgarvio’s picture

forgot WYSIWYG Fields
http://www.youtube.com/watch?v=-CYGPCCzWYo&feature=youtu.be

it deprecates WYSIWYG ImageField

- allow choosing which ImageCache/Styles are to be enabled for each field, besides the default style
ie, i have a site with over 120 styles. i don't want to list all of them when uploading files. Insert allows this.

"steal" ideas here:
Node Reference/Embed Media Browser (nrembrowser)
ImageField Extended

tomgf’s picture

I agree with you. Any comments from the development team?

JacobSingh’s picture

You are the development team! This is open source ;)

Seriously though, I support all of these (if not in media at least somewhere). But they should really end up in their own feature request issues with more detail.

lpalgarvio’s picture

might do that tomorrow if i remember :)

had to summarize everything first and check general impressions ^^

tomgf’s picture

Yes, JacobSingh, I know… Sorry for asking a stupid question. I meant which of these things are already in the development queue…

So, how can we cooperate with the development without stepping somebody's toes…?

For instance, I am very interested in having pathing rules and I can try to provide some code.

Comparing media.module with file.module – which has this feature – I recognized that file.module uses a file_managed_file_save_upload function, that receives an $element['#upload_location'] (and prepares the directory if it is not available).

Would it be a good way to do it mimicking this function in media.module…?

cocoloco’s picture

@LPCA: Regarding "allow choosing which ImageCache/Styles are to be enabled for each field, besides the default style", I'm working on a module (Media Image Transform) that will allow you to specify crops, ImageCache actions, and other filters to be applied to images on a per-instance basis.

You can find out more info here: http://drupal.org/sandbox/cocoloco/1090384

darklrd’s picture

Hello everyone

I want to work on this module as part of GSoC 2011. I have posted my proposal here - http://groups.drupal.org/node/137104. The duration of the project will 2 - 3 months. The main focus will be integration with WYSIWYG module. I am still preparing the list of features that will be covered. If you have any suggestions, some important features that should be included and I have missed them, please post it there.

Thanks

szaszg’s picture

"- more sources like in FileField Sources :: local file/ftp directory, IMCE?, autocomplete box for everything :: new/merge"

Here is a patch to use IMCE with media (instead of the quite unusable "media browser plus")
http://drupal.org/node/817654#comment-4328478

lpalgarvio’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Closed (duplicate) » Active
Issue tags: -directory +FileField

- size limits and other settings like in FileField :: file sizes, image sizes, etc :: new/merge
#1140434: Size limits and other settings like in FileField

- more fields like in FileField :: other fields attached to the field, like image title text, image alt text, description, additional custom fields :: new/merge
#1140428: more fields like in FileField

- ui settings like in FileField UI Exras :: be able to show/hide the fields, in fieldsets, with options per field in the content type :: new/merge
#1140424: ui settings like in FileField UI Exras

- more sources like in FileField Sources :: local file/ftp directory, IMCE?, autocomplete box for everything :: new/merge
#1140422: more sources like in FileField Sources

- pathing rules like in FileField Paths :: define where to save the files and other settings with tokens :: integration?
#1140418: pathing rules like in FileField Paths. integration?

- alias rules like in File Aliases :: same for file aliases: integration?
#1140406: alias rules like in File Aliases :: same for file aliases: integration?

- add insert button to fields, like in Insert :: so we have the "insert" button in wysiwyg, which calls a new upload box, but we dont have one button on the fields :: new/merge
#1140404: Add insert module integration

- adding the media with WYSIWYG "insert" button does not add the media to the fields.
#1140400: adding the media with WYSIWYG "insert" button does not add the media to the fields

lpalgarvio’s picture

- allow choosing which ImageCache/Styles are to be enabled for each field, besides the default style
ie, i have a site with over 120 styles. i don't want to list all of them when uploading files. Insert allows this.

this might be covered by File Styles and the Styles module, in the future?
if not, oh oh, something needs to be done

osopolar’s picture

Have also a look on the documentation (it's still incomplete and sometimes outdated, feel free to help there):

Styles structure explained (very good overview): http://drupal.org/node/1092444
Using Media as a field: http://drupal.org/node/703336
WYSIWYG Integration: http://drupal.org/node/703338

@LPCA have you had a look on http://www.drupalgardens.com ? There I guess you will see that at least some of your requests are already implemented.

petervd’s picture

Title: features that would make this module rock even more :) » Ability to specify (sub)directory when uploading media file to public area
Issue tags: -FileField +directory

At this moment all images are uploaded to the public (or private) area. This becomes a mess when having hundreds of files (as in a bird photo site).
Being able to specify a subdirectory in the popup upload window would be a real benefit.

---

For my local site I did the following patch in the code which works for me but is not idiot-proof.

Step 1. In file modules/media/media.pages.inc - function function media_add_upload (line 178) - add lines between 'pvd' comment

$form['upload'] = array(
'#type' => 'file',
'#title' => t('Upload a new file'),
'#description' => theme('file_upload_help', array('description' => '', 'upload_validators' => $validators)),
'#upload_validators' => $validators,
);

//pvd------------------------------------
$form['directory'] = array(
'#type' => 'textfield',
'#title' => t('Directory'),
'#description' => t('Enter a directory path where to store the image e.g. birds/europe/ as path (make sure to specify closing /).'),
'#default_value' => '',
);
//pvd------------------------------------

$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);

Step 2. In file modules/media/media.pages.inc - function function media_add_upload_submit (around line 245) - add lines between 'pvd' comment

function media_add_upload_submit($form, &$form_state) {
$scheme = variable_get('file_default_scheme', 'public') . '://';
//pvd------------------------------------
$scheme = $scheme . $form_state['values']['directory'];
//pvd------------------------------------
$file = $form_state['values']['upload'];

Step 3: Probably do the same in function media_add_upload_multiple_submit

function media_add_upload_multiple_submit($form, &$form_state) {
$scheme = variable_get('file_default_scheme', 'public') . '://';
//pvd------------------------------------
$scheme = $scheme . $form_state['values']['directory'];
//pvd------------------------------------
$saved_files = array();

Beware: the directory has to exist under your default file upload place. No checking is done in this simple solution.
Dare devils can always patch a mistake in the path directly in the database table 'file_managed'

hope this helps

lpalgarvio’s picture

Title: Ability to specify (sub)directory when uploading media file to public area » features that would make this module rock even more :)

the scope of this issue is more than just paths.
reverting issue to previous name.

@patch
it's a nice friendly idea, perhaps it could be added to the FileField Paths module or something

- pathing rules like in FileField Paths :: define where to save the files and other settings with tokens :: integration?
http://drupal.org/node/1140418

jagermonster’s picture

I think it would be great to have some more permissions available with this module.
Create new media
Edit own media
Edit any media
Delete own media
Delete any media
To reflect the permissions that is available on content types. Also make the media browser capable of showing all media or just media that belongs to the current user.

protools’s picture

+ 1 for WYSIWYG Fields

http://drupal.org/node/1140400

Dave Reid’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
bryancasler’s picture

subscribe

moniuch’s picture

subscribe
Autocomplete widget for linking to existing media would be a diamond!

Dave Reid’s picture

Status: Active » Closed (duplicate)

We all agree new feature are great. Let's make sure they have separate issues for each one in the correct places (Media vs File entity) and stop using a meta issue.

Status: Active » Closed (duplicate)