I got a problem when , i try to upload image through firestorage.
this function of upload :
 Future uploadFile() async {
    int i = 1;
    final String fileName = DateTime.now().toString();
    for (var img in _image) {
      setState(() {
        val = i / _image.length;
      });
   
      FirebaseStorage  storage = FirebaseStorage.instance;
      Reference ref = FirebaseStorage.instance.ref('gs://face14-5d6e2.appspsot.com').child(fileName);
      File file = File(img.path);
      try {
        await ref.putFile(file);
      } on FirebaseException catch (e) {
        print(e);
      }
    }
  }
/flutter (13708): [firebase_storage/unknown] location should not be a full URL. I/flutter (13708): /data/user/0/com.example.face1/cache/image_picker3492941265752856582.jpg E/flutter (13708): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(firebase_storage, location should not be a full URL., {}, null) E/flutter (13708): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597:7) E/flutter (13708): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18) E/flutter (13708): E/flutter (13708): I/flutter (13708): [firebase_storage/unknown] location should not be a full URL. I/flutter (13708): /data/user/0/com.example.face1/cache/image_picker1191392770962444186.jpg E/flutter (13708): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(firebase_storage, location should not be a full URL., {}, null) E/flutter (13708): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597:7) E/flutter (13708): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18) E/flutter (13708): E/flutter (13708): I/flutter (13708): [firebase_storage/unknown] location should not be a full URL.
 
     
    