Closed (duplicate)
Project:
FileField Sources
Version:
7.x-1.7
Component:
General
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2013 at 18:03 UTC
Updated:
31 May 2013 at 00:46 UTC
I can't seem to set a default value for a file field from a URL or any other method.
With IMCE it will let me narrow down to the file's directory but will not let me select a file.
I have tried all the file sources modules.
I cannot seem to find a way to do this with hook_form_alter
Comments
Comment #1
quicksketchWe don't yet have this functionality. It's a bit of a problem because the configuration form for a particular file field is the same form where a default is set. So things like the attach directory or the attach behavior is not yet known at the time a default is set, which could lead to some unexpected behavior.
In any case, if we can come up with solutions to these problems, it would be a reasonable feature request, so I'm changing the category.
Comment #2
eminencehealthcare commentedAs a workaround I use FileField source remote url and use the prepopulate module to fill it with the URL to the file.
Comment #3
quicksketchSeems this is the same as #1177050: FileField Sources for default image field. Let's consolidate.
Comment #3.0
quicksketchfile field**