upload on the server (need some fixes but works well)