Last updated 27 June 2013. Created on 27 June 2013.
Edited by jcisio. 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:

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 forums, or join #drupal-support in IRC.