Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello
Full description of the problem can be found in the following link
https://www.drupal.org/node/2318519
Comments
Comment #2
joseph.olstadI recommend seeing my patch in
#2318519: How do I select a file type on /file/add with plupload enabled?
long story short, I'm also using a patch for allowing upload location selection which
https://www.drupal.org/files/issues/allow_selection_of-2000934-30.patch
apply this also to file_entty
Created a file_entity type called 'default_news'
then added a menu link called file/add/default_news so that users can click it and the path becomes file/add/default_news
based on the path or POST value, force the default upload location, use this for validation
I wrote custom validation in :