Upload functionality Fix