資產上傳失敗,並出現含有大量內容的錯誤訊息

如果上傳多個資產至資料夾時發生錯誤,請從資料夾中移除0位元組資產,以便成功上傳剩餘資產。 請依照此處提供的說明解決問題。

說明 description

環境

  • Adobe Experience Manager as a Cloud Service
  • Adobe Experience Manager Assets

問題/症狀

將多個資產上傳到資料夾會擲回以下錯誤。

解決方法 resolution

嘗試上傳0位元組資產作為下列函式中的條件之一,可能會導致此失敗[ 0] 未符合。

尋找任何0位元組檔案,或下列函式中詳述的其他條件。[ 0]

從容納資料夾中移除0位元組資產後,其餘資產應能成功上傳。

上傳檔案時的必要條件為:

  1. 檔案名稱
  2. fileSize
  3. 檔案路徑
  4. blob

[ 0]

function ensureRequiredOptions(options) {
                if(!options.fileName || !options.fileSize || (!options.filePath && (!options.blob || !options.blob.slice))) {
                    throw new UploadError('UploadFile missing required fields. Must have fileName, fileSize, and either filePath or blob', ErrorCodes.INVALID_OPTIONS);
                    }
            }
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f