Skip to content

Commit

Permalink
upload image
Browse files Browse the repository at this point in the history
  • Loading branch information
douglas-88 committed Apr 6, 2020
1 parent 6a59c97 commit 5babd1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file not shown.
3 changes: 2 additions & 1 deletion src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class Image

public function __construct($imageNameInput)
{
mkdir("assets/images/uploads/",0777);
if(!is_dir($this->path)) mkdir($this->path,0777);

$this->intervention = new ImageManager();

$this->image = $_FILES[$imageNameInput];
Expand Down

0 comments on commit 5babd1e

Please sign in to comment.