Removed unused upload code