worked on upload code