upload to server firstly