Timeout
The specified application exceeded the allowed time for processing. The server has deleted the process.
seems to be a problem at the server side
I'm guessing you're on Windows
and I'm guessing if you try your upload using Microsoft's ftp.exe, that you'll get the same error.
If so (can you try that?), then the problem is not with python but with your FTP server or perhaps your network.
looking at your code further...I see you write to your temp file only to read it back in for storbinary
and you are doing that after you've connected to your server
try moving the 'writing to your temp file' before you even connect to your server
i.e., (pseudo)
write tempfile
connect to server
create dirs in server
storbinary
it might be that your timeout is being raised due to the time you spend writing to your temp file while your connection has already been established
i.e.,
# wasted time here with already open connection
fileName = uploadFile['filename'].replace(' ','_')
data = uploadFile['content']
os.chdir('/tmp')
temp = open(fileName,"wb")
temp.write(data)
temp.close()
size = os.path.getsize(fileName)
temp = open(fileName,"rb")
Code:
f.storbinary("STOR " + fileName,temp)