# Retrieve submitted files // several ways tried, non succeded

**URL:** <https://forum.mautic.org/t/retrieve-submitted-files-several-ways-tried-non-succeded/28088>\
**Category:** General Discussion\
**Created:** [May 20, 2023, 2:46pm UTC](https://forum.mautic.org/t/retrieve-submitted-files-several-ways-tried-non-succeded/28088 "2023-05-20T14:46:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [May 20, 2023, 2:46pm UTC](https://forum.mautic.org/t/retrieve-submitted-files-several-ways-tried-non-succeded/28088/1 "2023-05-20T14:46:11Z")

</div>

I try to find a suitable way to retrieve files uploaded via forms.  
To my knowledge there is no (documented) way to pull a file via the Mautic API.

I currently set it up the following way and failed:

1. get a system web hook for form submission (as the web hook from the form is missing important submission data)
2. retrieve the submission ID and file name from the web hook
3. generate the URL for the file (which is the Mautic URL + “/forms/results/file/XX/file”, where XX is the submission ID)
4. generate an https request with basic authorization in the header

However, I always get an 403 in response (cURL confirmed this as well).

So is the authentication always based on cookie? I can’t authorize an HTTP request within the header of the request?

Is there any other way I didn’t see?

---

<div class="post-metadata">

**Author:** ![gwentara](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gwentara/32/14260_2.png) [@gwentara](https://forum.mautic.org/u/gwentara)\
**Post date:** [August 12, 2024, 2:32pm UTC](https://forum.mautic.org/t/retrieve-submitted-files-several-ways-tried-non-succeded/28088/2 "2024-08-12T14:32:19Z")

</div>

Same problem here. Were you able to figure this out?

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [August 12, 2024, 7:39pm UTC](https://forum.mautic.org/t/retrieve-submitted-files-several-ways-tried-non-succeded/28088/3 "2024-08-12T19:39:51Z")

</div>

Unfortunately not. Probably API needs to be extended… It doesn’t support this yet.
