Add C version of upload_file example