Hello FlutterFlow Community,
I'm working on a custom action that involves downloading an image from a URL and converting it to an FFUploadedFile
object. However, I'm encountering an error that I can't seem to resolve. I've attached a screenshot of my code and the error message for reference.
The error states: "The named parameter 'file' isn't defined." It seems to be an issue with the FFUploadedFile
constructor in my code.
Here's the relevant part of my code where I believe the issue lies:
final FFUploadedFile uploadedFile = FFUploadedFile(
file: tempFile,
fileName: 'image.jpg',
mimeType: 'image/jpeg',
);
I've tried to ensure that all my imports are correct and that I'm following the documentation provided, but I must be missing something. Could anyone point me in the right direction or suggest what might be going wrong here?
Do I need to define the 'file' parameter somewhere else, or could this be an issue with the FlutterFlow custom class definitions?
Any help or guidance would be greatly appreciated!
Thank you in advance!