fixed upload file. use direct connection