Change state to string before uploading