Upload Function not working during sessions.