Hi and Happy New Year! I’m very new to Make and http and need some guidance. I have a subscription with Noteforms which stores file URLs from form submissions in a Notion database. Opening each URL requires that I am logged in to Noteforms which I have already figured out in the HTTP module. However, the links redirect to a presigned URL with the file hosted on the noteforms AWS S3 bucket. Using a GET request with the original URL just returns the html of that loading page. I have tried checking the follow redirect box in the HTTP module but that doesn’t seem to do anything. Is there a way to download the file this way or should I try something else?
Thanks for the help!
Hi @Justin_Zhang,
Welcome to Make!
It sounds like you’ll need two Modules; the first one to get the URL from Noteforms, and then use the “Get a file” module from the HTTP app to actually download the file from AWS S3. You’ll need to map the URL retrieved by the first module into the “Get a file” module so that it know where to look.
Let us know how it goes. Good luck.
Regards, Terry.
Hi @Terry_Hopper , thanks for the help!
The Noteforms link is stored in my Notion database and I do have it mapped to the HTTP module. The issue I’m having is that the URL is in the format
Login - NoteForms(Insert file name), but this link redirects to where the file is actually hosted - https://notionforms-prod.s3.eu-west-2.amazonaws.com/forms/122266/submissions/(Insert file name, security token, time, expiration date, etc.). Mapping the original URL to the Get a File module only returns the html file for that page which is just a loading page. Looking at my browser HTTP requests, it makes this first request for the original URL then runs some javascript code that directs it to the final URL.
Hi @Justin_Zhang,
Ah! I see. Have you tried using the “Make a Request” Module (set up with the security token etc) to access that /submissions page? That may return a URL in a format you can then pass to the “Get a file” module.
Another, more complex, option might be to parse the HTML/XML file that the API returns to try to find the location of the redirect inside it. Sounds messy though!
To help the community understand your problem at little better, please could you attached some screenshots showing:
- The overall scenario (ie how the modules fit together)
- The output that is being returned by the problem module, and
- How the relevant modules are currently configured.
Good luck with it.
Regards, Terry.
Ok thank you Terry. that seems too messy for me at the moment though, I think I will be able to use the Notion native forms now instead to upload files.