Skip to content

Commit 68c01a6

Browse files
committed
Modified upload function to delete temporary file
1 parent 2cd8b26 commit 68c01a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/snapchat.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,8 @@ public function upload($type, $data) {
862862
TRUE
863863
);
864864

865+
unlink($temp);
866+
865867
return is_null($result) ? $media_id : FALSE;
866868
}
867869

0 commit comments

Comments
 (0)