Last updated June 27, 2013. Created by jcisio on June 27, 2013.
Log in to edit this page.

Files uploaded as field respect field path settings. For files uploaded via the provider's form (Scald Flash, Scald Audio...), use hook_form_FORM_ID_alter() to modify the path. For example, to change Flash path to the 'atoms/swf/YYYY/mm/dd' structure:

<?php
function mymodule_form_scald_atom_add_form_add_alter(&$form, $form_state, $form_id) {
  if (
$form_state['scald']['source'] == 'scald_flash') {
   
$form['file_swf']['#upload_location'] = 'public://atoms/swf/' . date('Y/m/d');
  }
}
?>

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.