updated "upload file" snippets