you just need to post the file to the ftp endpoint...
# suitescript
c
you just need to post the file to the ftp endpoint... can use jquery/ajax