removed unused line from upload method