prepare server upload