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

Commit c7a671b

Browse files
committed
BUG: refs #0352. Allow empty bitstreams to be uploaded
1 parent 0ce2b2d commit c7a671b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/controllers/UploadController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,14 @@ public function saveuploadedAction()
257257
$upload = new Zend_File_Transfer('HttpFixed');
258258
$upload->receive();
259259
$path = $upload->getFileName();
260-
$file_size = filesize($path);
260+
$file_size = filesize($path);
261261
$filename = $upload->getFilename(null, false);
262262
ob_end_clean();
263263
}
264264

265265
$parent = $this->_getParam('parent');
266266
$license = $this->_getParam('license');
267-
if(!empty($path) && file_exists($path) && $file_size > 0)
267+
if(!empty($path) && file_exists($path))
268268
{
269269
$tmp = explode('-', $parent);
270270
if(count($tmp) == 2) //means we upload a new revision

0 commit comments

Comments
 (0)