Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for single-file uploads #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jreyesr
Copy link

@jreyesr jreyesr commented Jul 6, 2023

This PR adds support for file fields in forms. See the image below, which has an ordinary Text field and another field which is a file picker:

image

This causes the following data to be output from the Form trigger. Note that it has both JSON and binary data (though the node works as well with only JSON data, as it is now, or only binary data):

image

image

This change would expand the scope of the Form Trigger to also include "file-ingestion" workflows, such as a workflow that prompts the user for a file and then emails it it to multiple people, or also for simulation/manual triggering of workflows that need files (such as a workflow that would normally be triggered by Gmail's On Message Received with attachments).

Currently, it's not possible to receive files, even by overriding the HTML+JS of the form, so any such workflows aren't possible (I think, I haven't actually tried, but the code doesn't seem to support file parsing)

This PR closes #1

@Joffcom
Copy link
Owner

Joffcom commented Jul 6, 2023

This looks very useful thanks @jreyesr I will do some testing and make sure it doesn't break anything but it should be ok.

@Joffcom Joffcom added the enhancement New feature or request label Jul 6, 2023
@mp-strachan
Copy link

@Joffcom Is it possible to get this PR merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File Input Field
3 participants