Changed append_file() to use content type application/octet-stream