AronA
Windmill2w ago
6 replies
Aron

How does windmill recognize files in form-data?

Sending form-data payload to windmill webhook/http route, windmill automatically parses it and stores files as s3 objects.

I am using zoho forms for form submissions, and it seems zoho sends a
Content-Type
value for every field. Windmill parses all the fields as files.

Testing with postman, windmill behaves correctly.

Comparing the two payloads, postman does not pass a
Content-Type
value for non-file fields.

How does windmill determine, if a form-data field is actually a file or not? It looks like files are determined by the
Content-Type
, not by the
filename
property.


Apparently, I don't get the raw_string for form_data inputs. Is there a way, I could preprocess the form-data payload to delete the
Content_Type
for non-file fields?
Was this page helpful?