mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-19 21:03:44 -07:00
Merge pull request #12 from richellyitalo/patch-1
Close file after upload ran
This commit is contained in:
commit
879d5e399a
1 changed files with 4 additions and 0 deletions
|
@ -281,6 +281,10 @@ class SpacesConnect {
|
|||
}
|
||||
catch (\Exception $e) {
|
||||
$this->HandleAWSException($e);
|
||||
} finally {
|
||||
if (is_file($pathToFile)) {
|
||||
fclose($file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue