@@ 789-791 (lines=3) @@ | ||
786 | fclose($fp); |
|
787 | ftp_CloseDC(); |
|
788 | $fileinfo["type"]=get_mime_type($tempfile); |
|
789 | if (!$fileinfo["type"]) { |
|
790 | $fileinfo["type"]=get_mime_type($fileinfo["name"], MIME_EXT); |
|
791 | } |
|
792 | $fileinfo["size"]=filesize($tempfile); |
|
793 | ||
794 | debug("ftp: writing template to ($target$template)"); |
|
@@ 820-822 (lines=3) @@ | ||
817 | ftp_CloseDC(); |
|
818 | ||
819 | $fileinfo["type"]=get_mime_type($tempfile); |
|
820 | if (!$fileinfo["type"]) { |
|
821 | $fileinfo["type"]=get_mime_type($fileinfo["name"], MIME_EXT); |
|
822 | } |
|
823 | $fileinfo["size"]=filesize($tempfile); |
|
824 | debug("ftp::store total size of fileupload is: ".$fileinfo["size"]); |
|
825 | // if $target already exists |
|
@@ 838-840 (lines=3) @@ | ||
835 | ftp_CloseDC(); |
|
836 | ||
837 | $fileinfo["type"]=get_mime_type($tempfile); |
|
838 | if (!$fileinfo["type"]) { |
|
839 | $fileinfo["type"]=get_mime_type($fileinfo["name"], MIME_EXT); |
|
840 | } |
|
841 | $fileinfo["size"]=filesize($tempfile); |
|
842 | ||
843 | $FTP->store->call("ftp.$listMode.save.new.phtml", array("file" => $fileinfo), |