-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
closed: fixedstatus: confirmedIssue has been reproduced and confirmed as a bug.Issue has been reproduced and confirmed as a bug.type: bugSomething isn't working.Something isn't working.
Description
Has your issue been reported?
- I have searched the existing issues and confirm it has not been reported.
Current Behavior
File upload is not working to custom server. Files are considered as non-file params.
Expected Behavior
Files should be sent as file type as part of mutipart upload.
Steps To Reproduce
- Create a ui widget
- Upload any media
- Send a media to any server using api call.
- Track the api call at server. The files params are sent as empty.
Bug Report Code
ITEek/H15c9NtbxI+qn2bsFFmQMwGkQ5a7sviu5+FBQaI+KvEYouf8zCYRZWcuqHY2xYIlWWgkEH/96LjuHLEsEFEEycR7U4/5FtH1yjEA8=
Context
Blocker for release
Additional info
We have tried debugging the issue, the culprit seems to be this condition
bool Function(dynamic) _isFile = (e) => e is FFUploadedFile || e is List<FFUploadedFile> || (e is List && e.firstOrNull is FFUploadedFile);
The files are considered as normal param. Same thing works from postman,
Environment
- FlutterFlow version: 3.7.3
- Platform (e.g. Web, MacOS Desktop): MAC Version 12.5
- Browser name and version: CHROME Version 108.0.5359.124 (Official Build) (arm64)
- Operating system and version (desktop or mobile): desktop
Metadata
Metadata
Labels
closed: fixedstatus: confirmedIssue has been reproduced and confirmed as a bug.Issue has been reproduced and confirmed as a bug.type: bugSomething isn't working.Something isn't working.