You will have to load your file, write the form ba...
# suitescript
a
You will have to load your file, write the form back again with the file on it and then clientSide you do your thing and submit the form again with your final/modified file.