Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Upload Failed No NFO!!! HELP!! (http://www.bvlist.com/showthread.php?t=4578)

drosatos 24th February 2010 02:27

Upload Failed No NFO!!! HELP!!
 
Upload Failed No NFO!How i can fix it,what change in php?

Phogo 24th February 2010 13:59

In upload.php find the old line :

Code:

tr("NFO file", "(Required. Can only be viewed by power users.)\n", 1);
replace it with :

Code:

tr("NFO file", "(optional. Can only be viewed by power users)\n", 1);
In takeupload.php comment the lines out , so should look like this :

Code:

$nfofile = $_FILES['nfo'];
//if ($nfofile['name'] == '')
  /*bark("No NFO!");*/

//if ($nfofile['size'] == 0)
 /* bark("0-byte NFO");*/

if ($nfofile['size'] > 65535)
  bark("NFO is too big! Max 65,535 bytes.");

$nfofilename = $nfofile['tmp_name'];

//if (@!is_uploaded_file($nfofilename))
 // bark("NFO upload failed");



All times are GMT +2. The time now is 19:50.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.