@unboundcx/sdk 1.2.3 → 1.2.5
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/package.json +1 -1
- package/services/storage.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unboundcx/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
package/services/storage.js
CHANGED
|
@@ -163,7 +163,7 @@ export class StorageService {
|
|
|
163
163
|
|
|
164
164
|
return {
|
|
165
165
|
formData,
|
|
166
|
-
headers: {} //
|
|
166
|
+
headers: { 'content-type': '' } // Explicitly set empty content-type to prevent JSON default
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
|
|
@@ -427,11 +427,11 @@ export class StorageService {
|
|
|
427
427
|
);
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
// Build form fields
|
|
430
|
+
// Build form fields exactly like the regular upload but only include classification
|
|
431
431
|
const formFields = [];
|
|
432
432
|
formFields.push(['classification', classification]);
|
|
433
433
|
|
|
434
|
-
// Use the
|
|
434
|
+
// Use the correct profile image endpoint with proper FormData
|
|
435
435
|
return this._performUpload(file, fileName || 'profile-image.jpg', formFields, '/storage/upload-profile-image');
|
|
436
436
|
}
|
|
437
437
|
|