private function prepareData(&$data, $path, $propertyPath)
    {
        $file = new File($path);
        $data[FileType::FILENAME_FIELDNAME] = $file->getBasename();
        $data[FileType::HASH_FIELDNAME] = PurgatoryHelper::makeHash($propertyPath, $data[FileType::FILENAME_FIELDNAME]);
        $data[FileType::UPLOAD_FIELDNAME] = $file;
        $file->metaData = $data;
    }
private function prepareData(&$data, $path, $propertyPath)
    {
        $file = new File($path);
        $data[FileType::FILENAME_FIELDNAME] = $file->getBasename();
        $data[FileType::HASH_FIELDNAME] = PurgatoryHelper::makeHash($propertyPath, $data[FileType::FILENAME_FIELDNAME]);
        $data[FileType::UPLOAD_FIELDNAME] = $file;
        $file->metaData = $data;
    }
private function prepareData ( & $ data , $ path , $ propertyPath ) { $ file = new File ( $ path ) ; $ data [ FileType :: FILENAME_FIELDNAME ] = $ file -> getBasename ( ) ; $ data [ FileType :: HASH_FIELDNAME ] = PurgatoryHelper :: makeHash ( $ propertyPath , $ data [ FileType :: FILENAME_FIELDNAME ] ) ; $ data [ FileType :: UPLOAD_FIELDNAME ] = $ file ; $ file -> metaData = $ data ; }
Prepares the data before sending it to the form

@param mixed &$data
@param string $path
@param string $propertyPath
Prepares the data before sending it to the form