# Download Assets

**URL:** <https://forum.mautic.org/t/download-assets/1539>\
**Category:** Product Support\
**Created:** [February 14, 2015, 6:37pm UTC](https://forum.mautic.org/t/download-assets/1539 "2015-02-14T18:37:59Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![emailready](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@emailready](https://forum.mautic.org/u/emailready)\
**Post date:** [February 14, 2015, 6:37pm UTC](https://forum.mautic.org/t/download-assets/1539/1 "2015-02-14T18:37:59Z")

</div>

Hi, I created a form when completed you will receive a free ebook, it does everything only problems once the download is completed never mind the “Successful Submit Action” you choose it keeps the big blue ribbon and a big blank page. After the auto download is complete shouldn’t it then follow the “Successful Submit Action” you have chosen?

---

<div class="post-metadata">

**Author:** ![emailready](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@emailready](https://forum.mautic.org/u/emailready)\
**Post date:** [February 14, 2015, 6:37pm UTC](https://forum.mautic.org/t/download-assets/1539/2 "2015-02-14T18:37:59Z")

</div>

Hi, I created a form when completed you will receive a free ebook, it does everything only problems once the download is completed never mind the “Successful Submit Action” you choose it keeps the big blue ribbon and a big blank page. After the auto download is complete shouldn’t it then follow the “Successful Submit Action” you have chosen?

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [February 15, 2015, 4:23am UTC](https://forum.mautic.org/t/download-assets/1539/3 "2015-02-15T04:23:52Z")

</div>

Yea, that’s a tricky scenario as there’s no easy way to trigger an event once the asset has completely downloaded. The redirect and and download headers (which tell the browser what to do) tend to conflict preventing a download from happening. We can’ t initiate the download after the redirect since most of the forms will be on external pages and thus out of Mautic’s control.

So the only option is to really display a “return to” link in the “message” when configuring the asset download form action. Right now it doesn’t allow HTML, but I just changed that to be a basic editor/html so the next version will include this.

Thanks,  
Alan

---

<div class="post-metadata">

**Author:** ![emailready](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@emailready](https://forum.mautic.org/u/emailready)\
**Post date:** [February 15, 2015, 8:29am UTC](https://forum.mautic.org/t/download-assets/1539/4 "2015-02-15T08:29:16Z")

</div>

Thanks that will be perfect … will you guys consider in the future to make the actual form hide once the html message is displayed

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [February 15, 2015, 6:44pm UTC](https://forum.mautic.org/t/download-assets/1539/5 "2015-02-15T18:44:37Z")

</div>

Hi Lance,

What’s the setup for your scenario where the form is showing with the html message? If downloading an asset, it should show the asset download message and not the form on a submit. The same should be for other scenarios except for the return to form “post success” action. If that isn’t happening, then we may have to look into a possible bug.

Thanks!  
Alan

---

<div class="post-metadata">

**Author:** ![solacetech](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@solacetech](https://forum.mautic.org/u/solacetech)\
**Post date:** [February 15, 2015, 7:58pm UTC](https://forum.mautic.org/t/download-assets/1539/6 "2015-02-15T19:58:05Z")

</div>

I’ve used the asset feature for my ebook and that worked great. Now i want to use the asset feature to send my podcasts via email. Can we add the mime type .mp3? It stripped it from the file and when people download it from the email the PC doesnt know what type of file it is.

---

<div class="post-metadata">

**Author:** ![emailready](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@emailready](https://forum.mautic.org/u/emailready)\
**Post date:** [February 15, 2015, 8:43pm UTC](https://forum.mautic.org/t/download-assets/1539/7 "2015-02-15T20:43:44Z")

</div>

Hey Alan, the first scenario does that you explain happens as you said but the later doesn’t, doesn’t matter which option you select it only brings back the blue ribbon with the message and the download. This only happens with asset downloads

---

<div class="post-metadata">

**Author:** ![solacetech](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@solacetech](https://forum.mautic.org/u/solacetech)\
**Post date:** [February 15, 2015, 11:48pm UTC](https://forum.mautic.org/t/download-assets/1539/8 "2015-02-15T23:48:12Z")

</div>

Here is the error I’m getting: ![](https://drive.google.com/file/d/0B0hb75su59wJbUs2TWVmUmlqekk/view?usp=sharing)  
[https://drive.google.com/file/d/0B0hb75su59wJbUs2TWVmUmlqekk/view?usp=sharing](https://drive.google.com/file/d/0B0hb75su59wJbUs2TWVmUmlqekk/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![solacetech](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@solacetech](https://forum.mautic.org/u/solacetech)\
**Post date:** [February 16, 2015, 1:08am UTC](https://forum.mautic.org/t/download-assets/1539/9 "2015-02-16T01:08:12Z")

</div>

Ok, figured it out…I have to rename my mp3 file with .mp3 at the end for it to download as a media file.

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [February 16, 2015, 5:50pm UTC](https://forum.mautic.org/t/download-assets/1539/10 "2015-02-16T17:50:04Z")

</div>

@emailready, asset downloads will only show the message and the download regardless of what you have set as the “successful submit action.” That’s because we can’t redirect and force a download at the same time.

@solacetech, where did you have to change the mp3 extension? In the file before uploading or after you uploaded (both file and database entry)?

Thanks!  
Alan

---

<div class="post-metadata">

**Author:** ![solacetech](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@solacetech](https://forum.mautic.org/u/solacetech)\
**Post date:** [February 16, 2015, 7:09pm UTC](https://forum.mautic.org/t/download-assets/1539/11 "2015-02-16T19:09:44Z")

</div>

@alanhartless before i upload. Funny enough .ogg files worked perfectly.

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [February 17, 2015, 1:09am UTC](https://forum.mautic.org/t/download-assets/1539/12 "2015-02-17T01:09:58Z")

</div>

We’re using Symfony functions to determine the mime type. It looks like it tries to use “file -b --mime” and/or the PECL extension FileInfo to determine the mime. Could it be that your system doesn’t have the mp3/lame encoder installed? If not, it won’t be able to determine the mime without the extension.

Thanks!  
Alan

---

<div class="post-metadata">

**Author:** ![solacetech](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@solacetech](https://forum.mautic.org/u/solacetech)\
**Post date:** [February 17, 2015, 1:16am UTC](https://forum.mautic.org/t/download-assets/1539/13 "2015-02-17T01:16:31Z")

</div>

Possibly. I tried via Android and Win8. My Linux box is down so i didnt try it that way. I switched to .ogg and that worked fine so i’ll stick with it that way although renaming the file with .mp3 at the end worked.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 11:00pm UTC](https://forum.mautic.org/t/download-assets/1539/14 "2020-02-02T23:00:41Z")

</div>


