Browse Source

switch to new endpoint for fileUpdate

Neeraj Gupta 3 years ago
parent
commit
e4a52845ae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/utils/file_uploader.dart

+ 2 - 2
lib/utils/file_uploader.dart

@@ -556,8 +556,8 @@ class FileUploader {
       }
     };
     try {
-      final response = await _dio.post(
-        Configuration.instance.getHttpEndpoint() + "/files",
+      final response = await _dio.put(
+        Configuration.instance.getHttpEndpoint() + "/files/update",
         options: Options(
             headers: {"X-Auth-Token": Configuration.instance.getToken()}),
         data: request,