Results 1 to 1 of 1

Thread: Checking if file is NFO

  1. #1
    EDIT: Disregard!

    We have a custom made nfo upload mod installed. There is just one piece of code that is bugged:
    PHP Code:
    if($_FILES['nfo']) {
    if(
    substr(strtolower($nfofile['name']), strlen($nfofile['name']) - strlen(".nfo")) !== ".nfo") {
    $Err "You seem to have put something other than a nfo file into the nfo upload field. (".$nfofile['name'].").";
    }

    When this code is put in, NFO files are requiered. If the code is commented out, NFOs become optional BUt users can upload any type of file regardless if it is an NFO file. Does any one see what could be causing the problem here?
    Last edited by Techn9ne1730; 11-29-2010 at 06:19 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •