uploading files and updating links