Bug-fix-patch18

This commit is contained in:
Manish Verma
2016-11-07 15:35:26 +05:30
parent b64a423626
commit 3c69d5ee9b
2 changed files with 7 additions and 4 deletions

View File

@@ -16,6 +16,13 @@ class Ticket_attachments extends Model
$this->attributes['file'] = base64_encode($value);
}
public function getFileAttribute($value)
{
if (base64_decode($value, true) === false) {
$value = base64_encode($value);
}
return $value;
}
public function getFile()
{
$size = $this->size;