SproutCMS

This is the code documentation for the SproutCMS project

function save()

Save an uploaded file to a new location.

Usage

string Upload::save ( mixed $file [, string $filename [, string $directory [, integer $chmod ]]] );

Arguments

  1. mixed $file
    name of $_FILE input or array of upload data
  2. string $filename = NULL
    new filename
  3. string $directory = NULL
    new directory
  4. integer $chmod = 0644
    chmod mask

Return value

  • string
    full path to new file