Skip to main content

添加资源

¥Adding assets

媒体库显示在管理媒体字段时通过 媒体库内容管理者 在应用中上传的所有资源。

¥The Media Library displays all assets uploaded in the application, either via the Media Library or the Content Manager when managing a media field.

Add new assets windowAdd new assets window

要将新资源添加到媒体库:

¥To add new assets to the media library:

  1. 单击媒体库右上角的添加新资源按钮。

    ¥Click the Add new assets button in the upper right corner of the Media Library.

  2. 选择是要从计算机还是从 URL 上传新资源:

    ¥Choose whether you want to upload the new asset from your computer or from an URL:

    • 从计算机上,直接拖放资源或浏览系统上的文件,

      ¥from the computer, either drag & drop the asset directly or browse files on your system,

    • 从 URL 中,在 URL 字段中键入或复制并粘贴 URL,确保多个 URL 用回车符分隔,然后单击“下一步”。

      ¥from an URL, type or copy and paste an URL(s) in the URL field, making sure multiple URLs are separated by carriage returns, then click Next.

  3. (可选)单击编辑按钮

    ¥(optional) Click the edit button

Edit icon

查看资源元数据并定义资源的文件名、替代文本和标题(请参阅 编辑和删除资源)。4.5.

¥to view asset metadata and define a File name, Alternative text and a Caption for the asset (see editing and deleting assets). 4. (optional) Add more assets by clicking Add new assets and going back to step 2. 5. Click on Upload assets to the library.

媒体库支持多种媒体类型和扩展:

¥A variety of media types and extensions are supported by the Media Library:

媒体类型支持的扩展
图片* JPEG
- PNG
- GIF
- SVG
- TIFF
- ICO
- DVU
视频* MPEG
- MP4
- MOV (Quicktime)
- WMV
- AVI
- FLV
声音的* MP3
- WAV
- OGG
文件* CSV
- ZIP
- PDF
- XLS、XLSX
- JSON
✏️ 注意

添加到媒体库的图片将存储在 Strapi 应用的 /public/uploads 文件夹中。

¥Images added to the Media Library will be stored in the /public/uploads folder of your Strapi application.