Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
BUG: refs #0352. Allow empty bitstreams to be uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmullen committed Nov 18, 2011
1 parent 0ce2b2d commit c7a671b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ public function saveuploadedAction()
$upload = new Zend_File_Transfer('HttpFixed');
$upload->receive();
$path = $upload->getFileName();
$file_size = filesize($path);
$file_size = filesize($path);
$filename = $upload->getFilename(null, false);
ob_end_clean();
}

$parent = $this->_getParam('parent');
$license = $this->_getParam('license');
if(!empty($path) && file_exists($path) && $file_size > 0)
if(!empty($path) && file_exists($path))
{
$tmp = explode('-', $parent);
if(count($tmp) == 2) //means we upload a new revision
Expand Down

0 comments on commit c7a671b

Please sign in to comment.