Bro literally I was stuck on a simple issue... and your code really helped me... Thank you... I have subscribed your channel and did suggest my other friends too.
hi ,I have a problem with file _image, it forces me to initialize it and when I try to do it it says that abstract class should not be initialized I am confused. A remark I am working with a version 2.1.0
Good afternoon, sorry, when I want to use the code, the image is not uploaded because this variable is not saving what is happening to it var pic = await MultipartFile.fromPath('image',_image.path); I get this Instance of 'MultipartFile'
@@ShajedulIslamShawon thanks. I have another question. Why when I use android emulator, the file name won't be filename.jpg, but it's become filenamejpg? but when I connect to my phone, it works well. How do I fix?
Amazing tutorial, thank you so much but i face problem ArgumentError (Invalid argument (onError): Error handler must accept one Object or one Object and a StackTrace as arguments.: Closure: (HttpException) => Null) in line var response = (await request.send()); how can i solve it please
Thank sir for video, but i want to ask you, why i get error 404 HTTP request failed when execution Image network, even though the images there are in Database and my folder upload ?
@@ShajedulIslamShawon thank you sir, finally the image can display... But i want to know sir, why for my image from camera can't save like a image from gallery?
@@ShajedulIslamShawon sorry for being a bug put I did var request = http.MultipartRequest('POST', uri); //request.fields['name'] = nameController.text; and $image = $_FILES['image']; //$name = $_POST['name']; and $db->query("INSERT INTO person (image) VALUES('".$image."') "); still having some issues
the photo of the camera is not being saved in the database.,the image in the database is longblob. code:: if(imagen.path.isNotEmpty) { var Url = Uri.parse( "....."); var request = await http.MultipartRequest('POST', Url); request.fields['nombre'] = Correo; var pic = await http.MultipartFile.fromPath("imagen", imagen.path); request.files.add(pic); var response = await request.send(); if (response.statusCode == 200) { print("Imagen ok"); } else { print("Imagen noott ok"); } }else{ print("esta empty imagen"); } } ////php
My image does not gets uploaded i have created the uploads folder in my xampp project location its shows file uploaded successfully but the uploads folder is empty pls help me with that
@@ShajedulIslamShawon i have a code right now in flutter that has a signature pad and after writing when i click check it will be converted to png but i dont know how to send the png to mysql