add the function of upload files