|
@ -95,6 +95,9 @@ class Api { |
|
|
|
|
|
|
|
|
$this->translateFields($this->fileFields, $file, $apiPost); |
|
|
$this->translateFields($this->fileFields, $file, $apiPost); |
|
|
$apiPost['filename'] = @substr($file->name, 0, strrpos($file->name, '.')); |
|
|
$apiPost['filename'] = @substr($file->name, 0, strrpos($file->name, '.')); |
|
|
|
|
|
$dotPos = strrpos($file->file, '.'); |
|
|
|
|
|
$apiPost['ext'] = substr($file->file, $dotPos); |
|
|
|
|
|
$apiPost['tim'] = substr($file->file, 0, $dotPos); |
|
|
if (isset ($file->thumb) && $file->thumb) { |
|
|
if (isset ($file->thumb) && $file->thumb) { |
|
|
$apiPost['spoiler'] = $file->thumb === 'spoiler'; |
|
|
$apiPost['spoiler'] = $file->thumb === 'spoiler'; |
|
|
} |
|
|
} |
|
|