cloud-ide-element 1.0.59 → 1.0.60
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.
|
@@ -2844,7 +2844,7 @@ class CideEleFileManagerService {
|
|
|
2844
2844
|
console.log('🔍 [FileManagerService] Fetching file details for ID:', fileId.cyfm_id);
|
|
2845
2845
|
// Create a GET request payload similar to the upload structure
|
|
2846
2846
|
const payload = {
|
|
2847
|
-
|
|
2847
|
+
cyfm_id: fileId
|
|
2848
2848
|
};
|
|
2849
2849
|
return this.http.post(`${this._baseUrl()}`, payload).pipe(retry(2), catchError(this.handleError.bind(this)), takeUntilDestroyed(this.destroyRef));
|
|
2850
2850
|
}
|
|
@@ -3422,8 +3422,8 @@ class CideEleFileInputComponent {
|
|
|
3422
3422
|
// If it's an image and we have base64 data, set preview
|
|
3423
3423
|
if (this.showPreview() && fileData.cyfm_file_base64) {
|
|
3424
3424
|
// Check if it's an image file based on file name or type
|
|
3425
|
-
const isImage = this.isImageFileFromName(fileData.cyfm_name) ||
|
|
3426
|
-
this.isImageFileFromType(fileData.cyfm_type);
|
|
3425
|
+
const isImage = this.isImageFileFromName(fileData.cyfm_name || '') ||
|
|
3426
|
+
this.isImageFileFromType(fileData.cyfm_type || '');
|
|
3427
3427
|
if (isImage) {
|
|
3428
3428
|
// Add data URL prefix if not already present
|
|
3429
3429
|
let base64Data = fileData.cyfm_file_base64;
|