@stokr/components-library 3.0.69 → 3.0.70
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/context/Auth.js +4 -1
- package/package.json +1 -1
package/dist/context/Auth.js
CHANGED
|
@@ -393,7 +393,10 @@ class Auth {
|
|
|
393
393
|
*/
|
|
394
394
|
static uploadPhoto(data) {
|
|
395
395
|
return new Promise((resolve, reject) => {
|
|
396
|
-
axiosInstance.post(`media/user/avatar/upload`, data, {
|
|
396
|
+
axiosInstance.post(`media/user/avatar/upload`, data, {
|
|
397
|
+
responseType: "blob",
|
|
398
|
+
headers: { "Content-Type": "multipart/form-data" }
|
|
399
|
+
}).then((response) => {
|
|
397
400
|
resolve(response.data);
|
|
398
401
|
}).catch((err) => {
|
|
399
402
|
reject(err);
|