AnsweredAssumed Answered

Using Python to upload large files to FTP

Question asked by akwolf94 on Jun 13, 2019
Latest reply on Jun 13, 2019 by akwolf94

Hey guys, I wrote a script so I can post a large zipped dataset up to an FTP site, but I keep getting this return:


Traceback (most recent call last):
   File "C:/Users/wolf_ak/Desktop/Python/FTP", line 17, in <module>
      ftp.storlines('STOR ' +filename,myfile)
   File "C:\Python27\ArcGIS10.5\lib\", line 497, in storlines
     raise Error("got more than %d bytes" % self.maxline)
Error: got more than 8192 bytes


Is there a workaround to this?  The file I'm trying to post will be north of 70,000 KB


Here is my code:


I appreciate any and all help. 


Thank you!