|
|
@ -283,7 +283,13 @@ function islandora_datastream_version_replace_form($form, &$form_state, Abstract |
|
|
|
$form_state['object'] = $object; |
|
|
|
$form_state['object'] = $object; |
|
|
|
|
|
|
|
|
|
|
|
$extensions = islandora_get_extensions_for_datastream($object, $datastream->id); |
|
|
|
$extensions = islandora_get_extensions_for_datastream($object, $datastream->id); |
|
|
|
$valid_extensions = implode(' ', $extensions); |
|
|
|
if (empty($extensions)) { |
|
|
|
|
|
|
|
// In case no extensions are returned, don't limit. |
|
|
|
|
|
|
|
$valid_extensions = NULL; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
$valid_extensions = implode(' ', $extensions); |
|
|
|
|
|
|
|
} |
|
|
|
$upload_size = min((int) ini_get('post_max_size'), (int) ini_get('upload_max_filesize')); |
|
|
|
$upload_size = min((int) ini_get('post_max_size'), (int) ini_get('upload_max_filesize')); |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'dsid_fieldset' => array( |
|
|
|
'dsid_fieldset' => array( |
|
|
|