Skip to content

Great work ,  #225

@saeed7m

Description

@saeed7m

Great work ,
what happen when i upload some image with my FTP , the thumb not shown , icon instead , i changed
$thumb_path = $this->getThumbPath($file_name);

if (File::exists($thumb_path)) {
    $thumb_url = $this->getThumbUrl($file_name) . '?timestamp=' . filemtime($thumb_path);
} else {
    $thumb_url = null;
}

to

$thumb_path = $this->getThumbPath($file_name);
if (File::exists($thumb_path)) {
    $thumb_url = $this->getThumbUrl($file_name) . '?timestamp=' . filemtime($thumb_path);
} else {
    $thumb_url = $this->getFileUrl($file_name)  ;
}

now ,when thumb not available ,image show as thumbnail,
do you have a better solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementOptimization for existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions