diff --git a/js/default/monstaftp_ajax.js b/js/default/monstaftp_ajax.js index 5fa59128..6df46ad1 100644 --- a/js/default/monstaftp_ajax.js +++ b/js/default/monstaftp_ajax.js @@ -183,8 +183,11 @@ function processFileUploads(e,isDrop,isFolder,globalFiles) { // Count files to upload globalFileUploadPreCount=0; + for (var i=0; iftpConnection = @ftp_connect($this->ftpIP, $this->ftpPort, 3); + $this->ftpConnection = @ftp_connect($this->ftpIP, $this->ftpPort, 15); if ($this->ftpConnection) { @@ -3014,7 +3014,7 @@ class Monsta { } // Check if file reached server - if (file_put_contents($fp1,file_get_contents('php://input'))) { + if (file_put_contents($fp1, file_get_contents('php://input')) or (int) $ui->escaped('HTTP_X_FILE_SIZE','server') == 0) { if (!@ftp_put($this->ftpConnection, $fp2, $fp1, FTP_BINARY)) { if ($this->checkFirstCharTilde($fp2) == 1) {