removing commented code from upload behavior