Quote:
Originally Posted by David244us
Anyone know how to remove it or make it optional, i tried everything I know on the upload.php thanks :)
|
open CMS/applications/torrent/upload.php
remove line 19 and 20
PHP Code:
if (empty($_FILES["nfo"]['name']))
throw new Exception('No NFO file was selected.');
also add on line 52
PHP Code:
} else {
$nfo = "";
}
and it should work
Bump: also you may have to move line 30 and 31
PHP Code:
$nfo = $_FILES["nfo"];
$nfoname = $nfo["name"];
to line 42
PHP Code:
if (isset($_FILES['nfo']) && !empty($_FILES['nfo']['name'])) {
$nfo = $_FILES["nfo"];
$nfoname = $nfo["name"];