Skip to main content
All CollectionsUse integrations
How can I forward file uploads via webhook?
How can I forward file uploads via webhook?

Learn how to forward uploaded files from your leads directly as a file via Webhook or Zapier

Luise avatar
Written by Luise
Updated this week

You use webhooks to forward leads, but the uploaded files only arrive as download links? With the right settings, you can forward files directly and integrate them seamlessly into your automations!

Advantages of direct file forwarding

  • Efficient processing: Files are transferred directly and can be used immediately

  • Optimised automation: No additional download required - Make, Zapier & Co. can integrate the files directly

  • Simple implementation: The integration works with a simple server request

This is how it works 👇

If you retrieve the file link via a server request with the header Content-Type: application/json, you will receive the file directly in response. This allows you to use it in your automations without any detours.

Here is an example of a request via code with Axios:


const axios = require('axios');
const result = await axios.request({
method: 'get',
url: 'https://uploads.leadnotifications.co/42cb1b18-d371-4796-93a5-843847ba5a27?filename=logo%20whitespace.png&filehandle=BGQiYkvhSJGOPQJMizEZ&filesize=168949',
headers: { 'Content-Type': 'application/json' },
});

This method also works in Zapier - simply set up the appropriate request and you can process uploaded files directly!

Setup via zapier

You can easily integrate the file download into your Zapier workflow. To do this, simply add another action step to your Zap with data retrieval via GET request:

  1. Set up the trigger: As usual, select Perspective ‘New Lead via Funnel’ or ‘Visitor completed a funnel’ as the trigger and select the funnel in which you have the file upload field

  2. Set up the action: Now set up the data retrieval via GET request. Go to ‘Webhooks’ and select ‘Action event’ -> ‘GET’

  3. Map upload field: Click in the URL line and insert a ‘/’ to map your upload field from Perspective

  4. Set header: Under ‘Headers’, enter Content-Type on the left and application/json on the right.

  5. That's it! Click on ‘Continue’ and test your zap 🙌




Find additional information on the following topics in our Help Center:

Did this answer your question?