Imports a bulk of files to the Media Manager using external urls.
Returns information about the imported files.
を使用する。 parentFolderId
そして filePath
parameters to specify the folder you want each file to be imported to.
If no folder is specified, the file is imported to the media-root
folder.
注釈
media
property isn't returned in the files
response object.To import files, you need to do one of the following for each file:
mimeType
field of the request. For example, mimeType: 'image/jpeg'
.displayName
または url
field of the request. For example, displayName: 'Example Image.jpeg
または url: https://www.example.com/image.jpeg
.注: If you want to validate the media type, pass the file's expected media type in the optional mediaType
field of the request. For example, mediaType: 'IMAGE'
.
You can only call this method when authenticated as a Wix app or Wix user identity.