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;
    }