[英]C# Downloading file from JFrog using url
I'm using JFrog and want to download file using C# and WebClient.我正在使用 JFrog 并想使用 C# 和 WebClient 下载文件。 Url is like /filename.zip
Url 就像 /filename.zip
But Downloads as a HTML page.但下载为 HTML 页面。 Says container is damaged.
说容器损坏。 And also html says you needs to enable javascript.
html 还说您需要启用 javascript。
How can i fix that.我该如何解决。
Thanks alot!!非常感谢!!
The Retrieve Folder or Repository Archive API allows to download an archive file (supports zip/tar/tar.gz/tgz) containing all the artifacts that reside under the specified path (folder or repository root). 检索文件夹或存储库存档 API允许下载包含驻留在指定路径(文件夹或存储库根目录)下的所有工件的存档文件(支持 zip/tar/tar.gz/tgz)。 However it does not support filtering by properties.
但是它不支持按属性过滤。
The Artifactory CLI supports concurrently downloading multiple files. Artifactory CLI支持同时下载多个文件。 It also supports downloading files we matches a set of property values.
它还支持下载我们匹配一组属性值的文件。 The CLI, however, will use multiple HTTP requests for doing so.
但是,CLI 将使用多个 HTTP 请求来执行此操作。
A third option would be developing a custom user plugin which allows downloading an archive of artifacts matching a set of properties.第三种选择是开发一个自定义用户插件,它允许下载与一组属性匹配的工件存档。 An execution user plugin can be executed as a REST API call.
执行用户插件可以作为 REST API 调用执行。 There is a sample plugin in the JFrogDev GitHub account which can serve as a good start point.
JFrogDev GitHub 帐户中有一个示例插件,可以作为一个很好的起点。 This plugin allows downloading the content of a directory as an archive.
该插件允许将目录的内容下载为存档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.