Upload functionality from Cody (need to fix 404 error)