SproutCMS

This is the code documentation for the SproutCMS project

function createLocalCopy()

Create a copy of the file in a temporary directory.
Don't forget to File::destroy_local_copy($temp_filename) when you're done!

Usage

string File::createLocalCopy ( string $filename );

Arguments

  1. string $filename
    The file to copy into a temporary location

Return value

  • string
    Temp filename or NULL on error