fixed upload method