無法在 Windows 上透過 FTP 傳送超過 1 MB 的文件

無法在 Windows 上透過 FTP 傳送超過 1 MB 的文件

我嘗試使用簡單的批次腳本透過 FTP 命令發送多個檔案。當檔案大小小於 1 MB 時,它運作正常,但當檔案大於 1 MB 時,我會收到以下錯誤日誌。

需要發送的文件:

    H:\dir\file1.xls         (aprox 500KB)
    H:\dir\file2.xls"        (aprox 500KB)
    H:\dir\folder\file3.xls" (aprox 1500KB) NOT SENT
    H:\dir\folder\file4.xls" (aprox 1500KB) NOT SENT

日誌.txt:

    Conectado a www.mysite.com.
    220 ProFTPD 1.3.4a Server (ProFTPD Server) [::ffff:200.11.111.111]
    Usuario (mysite.com:(none)): 
    331 Password required for [email protected]

    230 User [email protected] logged in
    ftp> bin
    200 Type set to I
    ftp> put "H:\dir\file1.xls"
    200 PORT command successful
    150 Opening BINARY mode data connection for file1.xls
    226 Transfer complete
    ftp: 618496 bytes enviados en 3,28 segundos 188,51 a KB/s.

    ftp> put "H:\dir\file2.xls"
    200 PORT command successful
    150 Opening BINARY mode data connection for file2.xls
    226 Transfer complete
    ftp: 37888 bytes enviados en 0,00 segundos 37888000,00 a KB/s.

    ftp> put "H:\dir\folder\file3.xls"
    200 PORT command successful
    ftp> Desconectado.

    ftp> put "H:\dir\folder\file4.xls"
    quit

發送.bat

   ftp -s:comandosftp.txt ftp.mysite.com > logs.txt

comandosftp.txt

   [email protected]
   password
   bin
   put "H:\dir\file1.xls"
   put "H:\dir\file2.xls"
   put "H:\dir\folder\file3.xls"
   put "H:\dir\folder\file4.xls"
   quit

任何建議請。

相關內容