9

Is there a module or some other way of attaching an image to an image field by selecting the image from existing files on the server rather than upload a new image?

I'm working on a project where many nodes have an image field. That image is displayed in various places at different sizes using image styles.

The users are migrating from another system and they're very used to the "image library" concept. They like to upload images that they will later use in various places around the site. The standard image field on a node only lets you upload from the local file system.

Ideally we'd like to have a "browse server" button instead of the upload button but end up with the same resulting image field.

The Media module comes tantalizingly close and I'm sure we'll use it for videos etc but it creates a media asset field, not an image field which I don't think can be resized with image styles and used so easily in views etc.

I tried the image picker module late last night. Maybe I need to try it again but I don't think I quite understood it. We don't really want resizing and create thumbnails etc on the node edit screen. We really just want a way to create an image field where the path points to an existing file somewhere below /sites/default/files. The files will be uploaded with something like IMCE.

Thanks for any ideas.

  • This question is open again for Drupal 8, where the answers below do not seem to be working (yet) – Hendrik Dec 22 '15 at 9:25
9

I think Filefield Sources along with IMCE does what you need.

  • This works perfectly. Thanks. The other answers sound good too. – tetranz Feb 22 '12 at 20:26
  • Thank you for recommending this. This is just a wonderful module. It even looks cleaner in page edit screen. – Rick Oct 24 '12 at 15:34
2

You can also use IMCE for filefield that was just released. IMCE for File Field allows users to select files from IMCE File Browser for file fields. It supports FTP uploaded files by automatically registering them as IMCE files thus making them usable in a file field.

2

The Media module is also useful for images, but you can also use a regular image field and use the Media widget to upload or select images from the server. The field remains the same, only the way for the image to get inputted changes. I believe you even have the possibility to search and filter in the widget that comes with Media module 2.x

  • Media 2.x is the new hotness, yes. The same file can be re-used in multiple places. The Media file selector widget allows users to choose an existing uploaded file, or upload a new one. – thirdender May 23 '14 at 3:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.