updated with post method for uploading and test