rename while doing ftp

hi friends,

I writing a script to psot dataset to ceratin server.....while doing ftp I have to rename the file while which is in present server like

present :test server

filename data.097878.

ftp server: it sholu be renamed as data.097878.zip

thanks,

The thing is that while we make put data.097878 I want to rename it atr this instant..
PWD=nagabhushna
file data.097878

ftp -inv production
username password
cd some dir
put data.097878 at this instant I want to rename it and post it as data.097878.tested

put data.097878 data.097878.tested

will post it as the latter in the remote machine.