Merge pull request #12 from richellyitalo/patch-1

Close file after upload ran
This commit is contained in:
Dev Ang 2018-07-27 00:14:33 +05:30 committed by GitHub
commit 879d5e399a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -281,6 +281,10 @@ class SpacesConnect {
}
catch (\Exception $e) {
$this->HandleAWSException($e);
} finally {
if (is_file($pathToFile)) {
fclose($file);
}
}
}