isdata-customer-sdk 0.1.70 → 0.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.common.js
CHANGED
|
@@ -31269,7 +31269,7 @@ const addAndCleanDocument = async (fileUrl, options = {}) => {
|
|
|
31269
31269
|
let home_page = window.smardaten_api_context_path;
|
|
31270
31270
|
let finalUrl = `${home_page}/storage_area/public${fileUrl}`;
|
|
31271
31271
|
let fileType = finalUrl.split(".").pop().toLowerCase();
|
|
31272
|
-
let fileName = options.fileName
|
|
31272
|
+
let fileName = options.fileName || dify_extractFilenameFromUrl(finalUrl);
|
|
31273
31273
|
fileType = getDifyFileType(fileType);
|
|
31274
31274
|
let loginUserData = window.anonymousIsLogin || window.currentUser;
|
|
31275
31275
|
let user_id = options.userID || loginUserData?.id;
|