You are here

function qqUploadedFileForm::save in TinyBrowser 7

Save the file to the specified path

Return value

boolean TRUE on success

File

tinybrowser/fileuploader.php, line 86

Class

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

Code

function save($path) {
  if (!move_uploaded_file($_FILES['qqfile']['tmp_name'], $path)) {
    return false;
  }
  return true;
}