Corrected uploaded file path overwriting file path