Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.

Fixes #26 #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixes #26 #27

wants to merge 2 commits into from

Conversation

nnasirzada
Copy link

Fixes #26

I had the same problem. This change fixes the issue.
Additionally, I think it's better to check some core attributes rather than checking all inputs on line 429 because the rest is always the same.

Fixes matriphe#26

I had the same problem. This change fixes the issue. 
Additionally, I think it's better to check some core attributes rather than checking all inputs on line 429 because the rest is always the same.
@nnasirzada
Copy link
Author

Hi @matriphe
Could you please check what is wrong with the test cases?

@@ -334,7 +334,7 @@ private function resizeCropImage(UploadedFile $uploadedFile, $targetFilepath, $w
];

// Save to s3
if($this->s3_enabled) {
if(true === $this->s3_enabled) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$this->s3_enabled === true
Looks cleaner this way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

conflict between s3_enabled = false and 'output' => env('IMAGEUPLOAD_OUTPUT', 'db')
2 participants