1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 01:34:31 +01:00

Merge pull request #65 from hatstand0/patch-2

Add file md5 to API
This commit is contained in:
Fredrick Brennan 2014-09-25 12:37:17 -04:00
commit f11da66e3d

View File

@ -113,6 +113,7 @@ class Api {
$apiPost['ext'] = substr($file->file, $dotPos);
$dotPos = strrpos($file->file, '.');
$apiPost['tim'] = substr($file->file, 0, $dotPos);
$apiPost['md5'] = base64_encode(md5_file($file->file_path, true));
}
return $apiPost;