EaCloud.Pack.File
9.0.1.1
dotnet add package EaCloud.Pack.File --version 9.0.1.1
NuGet\Install-Package EaCloud.Pack.File -Version 9.0.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EaCloud.Pack.File" Version="9.0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EaCloud.Pack.File" Version="9.0.1.1" />
<PackageReference Include="EaCloud.Pack.File" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EaCloud.Pack.File --version 9.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EaCloud.Pack.File, 9.0.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EaCloud.Pack.File@9.0.1.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EaCloud.Pack.File&version=9.0.1.1
#tool nuget:?package=EaCloud.Pack.File&version=9.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EaCloud 文件模块
说明
EaCloud 文件模块,封装基于 EaCloud 文件组件的功能实现。
用法
可按照如下配置方式使用:
- 通过nuget引用
EaCloud.Pack.File程序集
Install-Package EaCloud.Pack.File
- 在
appsettings.json中添加如下配置节点
{
"File": {
"Root": "D:\MyStaticFiles", //根目录。这应该是一条绝对的道路。例如:D:\MyStaticFiles
"RequestPath": "/StaticFiles", //映射到静态资源的相对请求路径。例如:/StaticFiles
"AllowOrigin": true, //是否允许跨域
"VersionEnabled": true, //是否启用版本管理(启用后删除、修改前的文件将作为历史版本归档)
"StoreMode": "Physical", //存储方式:DataBase-数据库、Physical-物理存储、DataStoreSvc-数据存储服务
"StoreSvcConnectionString": "", //数据存储服务连接字符串:例如:Azure Blob Storage {"DefaultEndpointsProtocol=https;AccountName=xxx;AccountKey=yyy"}
"StoreGroup": "ByYearMonth", //存储分组:NoGroup-不分组、ByYear-按年度分组、ByYearMonth-按年度月度分组、ByYearMonthDay-按年月日分组、ByExts-按扩展类型分组
"FileSizeLimit": 1073741824, //文件大小限制:0为不限制
"PermittedExts": ".txt,.png,.docx", //允许的上传类型:*为允许所有,多类型用“,”分隔
"DisallowedExts": ".exe,.bat", //阻止的上传类型:*为不限制,多类型用“,”分隔
}
}
3.解决文件上传大小限制,在项目中添加web.config文件
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
交流
![]() |
![]() |
|---|---|
| QQ群号:863605868 | 微信号:SeonHu |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- EaCloud.EntityFrameworkCore (>= 9.0.1.1)
- EaCloud.File (>= 9.0.1.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on EaCloud.Pack.File:
| Package | Downloads |
|---|---|
|
EaCloud.Api.File
EaCloud 文件模块API,封装基于 EaCloud 文件模块的WebApi实现。 |
|
|
EaCloud.Api.Identity
EaCloud 身份认证模块API,封装基于 EaCloud 身份认证模块的WebApi实现。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.1.1 | 300 | 10/22/2025 |
| 9.0.0.9 | 298 | 8/12/2025 |
| 9.0.0.8 | 216 | 7/5/2025 |
| 9.0.0.7 | 323 | 6/25/2025 |
| 9.0.0.6 | 320 | 6/18/2025 |
| 9.0.0.5 | 314 | 6/14/2025 |
| 9.0.0.4 | 307 | 5/8/2025 |
| 9.0.0.3 | 320 | 4/23/2025 |
| 9.0.0.2 | 336 | 4/11/2025 |
| 9.0.0.1 | 305 | 3/21/2025 |
| 8.0.1.9 | 298 | 11/15/2024 |
| 8.0.1.8 | 294 | 11/13/2024 |
| 8.0.1.7 | 284 | 10/9/2024 |
| 8.0.1.6 | 273 | 9/29/2024 |
| 8.0.1.5 | 288 | 9/13/2024 |
| 8.0.1.4 | 310 | 8/10/2024 |
| 8.0.1.3 | 296 | 8/7/2024 |
| 8.0.1.2 | 303 | 8/7/2024 |
| 8.0.1.1 | 272 | 8/7/2024 |
| 8.0.0.9 | 282 | 8/7/2024 |
Loading failed

