I'm not sure this will be possible, as you configure the FileField Sources options for a file field on the same page as you choose the default image...

Ideally, I'd like to be able to choose an existing file on the server (or from an external URL etc.) to use as the default image/file for a file field.

In my case, I have several different banner image fields created (yes, I could have created one and re-used), and if I want them all to use the same default image, I have to upload it afresh each time I'm setting the default image for the field. Resulting in duplicates of the file sitting on the server with different names.

Comments

quicksketch’s picture

I agree this would be a nice feature and with D7, we have the ability to affect any "managed_file" element on the entire site (in fact we already *are* doing this on all elements throughout the site). But since we have no place to store the configuration of these fields, no options are shown on these fields. We could get into some kind of interface for enabling FileField Sources on arbitrary forms/elements, but I'm not sure if we want to get into that.

blacksnipe’s picture

+1 for request & subscribing

MoRphlnE’s picture

+1

eminencehealthcare’s picture

As a workaround I use FileField source remote url and use the prepopulate module to fill it with the URL to the file.

quicksketch’s picture

Marked #1972024: Set a file field default value using FileField Sources as duplicate. Thanks @eminencehealthcare for sharing your work-around. :)

delacosta456’s picture

Issue summary: View changes

hi

this i old but if will be nice to have this option for default .. so that the "file attach" option can let us choose an existing image.

tonytheferg’s picture

I would like to see this for Drupal 9. Should I open a separate issue?