You are here

class qqUploadedFileForm in TinyBrowser 7

Handle file uploads via regular form post (uses the $_FILES array)

Hierarchy

Expanded class hierarchy of qqUploadedFileForm

File

tinybrowser/fileuploader.php, line 81

View source
class qqUploadedFileForm {

  /**
   * Save the file to the specified path
   * @return boolean TRUE on success
   */
  function save($path) {
    if (!move_uploaded_file($_FILES['qqfile']['tmp_name'], $path)) {
      return false;
    }
    return true;
  }
  function getName() {
    return $_FILES['qqfile']['name'];
  }
  function getSize() {
    return $_FILES['qqfile']['size'];
  }

}

Members