Browse Source

Merge pull request #570 from willtp87/7.x.file_default_schema

Using file_default_schema now that consensus has been reached.
pull/571/head
Adam 10 years ago
parent
commit
1fff3f4687
  1. 2
      includes/add_datastream.form.inc
  2. 2
      includes/datastream.version.inc

2
includes/add_datastream.form.inc

@ -71,7 +71,7 @@ function islandora_add_datastream_form(array $form, array &$form_state, Abstract
'#size' => 48, '#size' => 48,
'#description' => t('Select a file to upload.<br/>Files must be less than <strong>@size MB.</strong>', array('@size' => $upload_size)), '#description' => t('Select a file to upload.<br/>Files must be less than <strong>@size MB.</strong>', array('@size' => $upload_size)),
'#default_value' => isset($form_state['values']['files']) ? $form_state['values']['files'] : NULL, '#default_value' => isset($form_state['values']['files']) ? $form_state['values']['files'] : NULL,
'#upload_location' => 'public://', '#upload_location' => file_default_scheme() . '://',
'#upload_validators' => array( '#upload_validators' => array(
// Disable default file_validate_extensions; we need direct control. // Disable default file_validate_extensions; we need direct control.
'file_validate_extensions' => array(NULL), 'file_validate_extensions' => array(NULL),

2
includes/datastream.version.inc

@ -305,7 +305,7 @@ function islandora_datastream_version_replace_form($form, &$form_state, Abstract
'#title' => t('Upload Document'), '#title' => t('Upload Document'),
'#size' => 64, '#size' => 64,
'#description' => t('Select a file to upload.<br/>Files must be less than <strong>@size MB.</strong>', array('@size' => $upload_size)), '#description' => t('Select a file to upload.<br/>Files must be less than <strong>@size MB.</strong>', array('@size' => $upload_size)),
'#upload_location' => 'public://', '#upload_location' => file_default_scheme() . '://',
'#upload_validators' => array( '#upload_validators' => array(
'file_validate_extensions' => array($valid_extensions), 'file_validate_extensions' => array($valid_extensions),
// Assume its specified in MB. // Assume its specified in MB.

Loading…
Cancel
Save