Skip to content

File Upload not working  #549

@ISHA7782

Description

@ISHA7782

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

  1. Create a ui widget
  2. Upload any media
  3. Send a media to any server using api call.
  4. 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,

Screen Shot 2023-02-27 at 10 21 29 PM

Screen Shot 2023-02-27 at 10 21 37 PM

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions