Completed upload code