Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
amattu2 committed Jan 14, 2022
2 parents 406d6d8 + d98df80 commit c55a253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FTP.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function upload() : bool
// Open FTP Connection and upload
if (($ftp = @ftp_connect(FTP::HOST, FTP::PORT)) && @ftp_login($ftp, $this->username, $this->password)) {
// Push file
$status = ftp_put($ftp, __DIR__ . "/" . $this->filename, $this->filename, FTP_BINARY);
$status = ftp_put($ftp, $this->filename, __DIR__ . "/" . $this->filename, FTP_BINARY);

// Close Connection
$this->was_uploaded = $status;
Expand Down

0 comments on commit c55a253

Please sign in to comment.