Jump to content
Sign in to follow this  

AutoIt FTP Upload Limit

Recommended Posts


Does anyone know why AutoIt upload is limited to ~50KBps? Is there any way to remove the limit?

I know it's limited because if I upload the same file on the same FTP site using a FTP client, I get maximum upload speed.

Probably it's because of the number of threads. Can those be increased?

Edited by ineedh3lp

Share this post

Link to post
Share on other sites

I wanted to test your claim. My initial thought is you may not realize that most ISPs limit your upload speed a lot more than your download speed. My ISP gives me 20 times slower upload than download. However, that doesn't prove anything.

I wrote a script that will give you your actual speed:

#include <FTPEx.au3>
#Include <Timers.au3>
$filesize = FileGetSize("Firefox.exe")/1000
$server = 'mysite.com'
$username = 'username'
$pass = 'password'
$Open = _FTP_Open('MyFTP Control')
$Conn = _FTP_Connect($Open, $server, $username, $pass)
$starttime = _Timer_Init()
_FTP_FilePut($Conn, "Firefox.exe", "/Folder1/Firefox.exe")
$Ftpc = _FTP_Close($Open)
$endtime = _Timer_Diff($starttime)/1000
$rate = Round ($filesize / $endtime, 2)
MsgBox(0, "", "Time (sec): " & Round($endtime, 2) & @CRLF & $rate & " KBps")

I ran the AutoIt test. Here's the results:

Posted Image

Then I uploaded the same file by Filezilla (I took the screenshot right near the end of the upload):

Posted Image


AutoIt: 64.35 KBps & 194.5 seconds

Filezilla: 64.7 KBps & 193 seconds

These are negligible differences. If anything at all, AutoIt took about 1 second longer to upload a 12 MB file.

So, my initial thoughts are correct. Your ISP is limiting your upload speed. If you know anyone who has Fiber Optic or T1 (their upload speed are usually about the same as their download speeds), check your AutoIt performance on that connection. I bet you will see a dramatic difference.

#include <ByteMe.au3>

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this