history upload functionality