Skip to content

Commit

Permalink
changes to preview images
Browse files Browse the repository at this point in the history
  • Loading branch information
Uncle Cheese committed Sep 28, 2015
1 parent 8a95cb1 commit 1f97657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/DropzoneFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getPreviewThumbnail($w = null, $h = null) {
if(!$w) $w = $this->owner->config()->grid_thumbnail_width;
if(!$h) $h = $this->owner->config()->grid_thumbnail_height;

if($this->IsImage()) {
if($this->IsImage() && Director::fileExists($this->owner->Filename)) {
return $this->owner->CroppedImage($w, $h);
}

Expand Down

0 comments on commit 1f97657

Please sign in to comment.