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

uploading files #6

Open
ArneNostitz opened this issue Nov 17, 2024 · 10 comments
Open

uploading files #6

ArneNostitz opened this issue Nov 17, 2024 · 10 comments

Comments

@ArneNostitz
Copy link

i am trying to get a file uploaded and was wondering how to do this with the pb node

thanks!

@TheFehr
Copy link
Owner

TheFehr commented Nov 17, 2024

I have not had that need, it might not be supported as of now.

@ArneNostitz
Copy link
Author

would be great if it did :)

it would need a more complex property management though (binary files, field-name) - send as form-data.

otherwise your plugin is very convenient :)

@TheFehr
Copy link
Owner

TheFehr commented Nov 18, 2024

Yes I'd need to figure out who to work with binary data in a n8n node.

Maybe I'll find the energy some day.
I am also open to pull requests or even just pointers at good docs / examples.

@ArneNostitz
Copy link
Author

sadly i am really hitting a wall with PB and data upload ... maybe its not PB. but i am not able to get it to work.

are you using the JS SDK in the background? or are you building http requests?

@TheFehr
Copy link
Owner

TheFehr commented Nov 18, 2024

The node uses the sdk in the background

@javierfuentesm
Copy link

@ArneNostitz, did you find a workaround? I'm facing the same issue

@ArneNostitz
Copy link
Author

yes. using the http request node in form data mode, sending data as binary - that works. its a bit tricky because i used to test by stepping through the workflow and pinning the outputs - but that does not work for binary - it looks like it does but is actually not sending data - and that creates errors.
the workflow needs to run, then it works

@javierfuentesm
Copy link

yes. using the http request node in form data mode, sending data as binary - that works. its a bit tricky because i used to test by stepping through the workflow and pinning the outputs - but that does not work for binary - it looks like it does but is actually not sending data - and that creates errors. the workflow needs to run, then it works

Thank you and how did you authenticate your request ?

@ArneNostitz
Copy link
Author

depends on what you want to do. if you just have one user, you can use the basic auth with username, password set in n8n.

otherwise you need to auth through another http request (login) and then use the token

image image

@javierfuentesm
Copy link

depends on what you want to do. if you just have one user, you can use the basic auth with username, password set in n8n.

otherwise you need to auth through another http request (login) and then use the token

image image

you are a life saver thank you !

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

No branches or pull requests

3 participants