function to upload data web