# File Upload restrict by type

**URL:** <https://community.hubspot.com/t/file-upload-restrict-by-type/2575>\
**Category:** HubSpot Ideas\
**Tags:** forms\
**Created:** [June 29, 2017, 6:52pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575 "2017-06-29T18:52:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeyWestScott](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/keywestscott/32/70903_2.png) [@KeyWestScott](https://community.hubspot.com/u/KeyWestScott)\
**Post date:** [June 29, 2017, 6:52pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/1 "2017-06-29T18:52:44Z")

</div>

When having customers upload a file, it would be beneficial to have the file types restricted. For example, on a form for employment, we would like to restrict to only PDF files. Reason being is that Office files, Word or Excel allow macros that can contain that execute on the workstation. By only having PDF files, that would make our users safer, in that it lessens the possiblilty for

**virus**

’ to be introduced into our systems.

There are many other scenarios where restricting the file upload type would be beneficial.

---

<div class="post-metadata">

**Author:** ![cpburke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cpburke/32/48852_2.png) [@cpburke](https://community.hubspot.com/u/cpburke)\
**Post date:** [August 31, 2019, 4:37pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/2 "2019-08-31T16:37:53Z")

</div>

This feature would be great!

---

<div class="post-metadata">

**Author:** ![Jbrewster](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbrewster/32/5125_2.png) [@Jbrewster](https://community.hubspot.com/u/Jbrewster)\
**Post date:** [September 25, 2019, 3:48pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/3 "2019-09-25T15:48:21Z")

</div>

I was also hoping to restrict certain file types from being uploaded via forms. Hope to see this as a new feature soon.

---

<div class="post-metadata">

**Author:** ![WSmith](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wsmith/32/84489_2.png) [@WSmith](https://community.hubspot.com/u/WSmith)\
**Post date:** [January 28, 2021, 12:23am UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/4 "2021-01-28T00:23:25Z")

</div>

I’d like to be able to restrict the file types a visitor can upload through the file upload field in HubSpot forms. The link sent by HubSpot auto-downloads the file to your computer.

I was able to upload a .exe file, which seems to be a significant security risk. I would think this could pose a risk to the HubSpot servers as well.  
I’m actually quite surprised by this. Is there any chance HubSpot’s developers will escalate this in the very near future?

---

<div class="post-metadata">

**Author:** ![KeyWestScott](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/keywestscott/32/70903_2.png) [@KeyWestScott](https://community.hubspot.com/u/KeyWestScott)\
**Post date:** [March 15, 2021, 1:56pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/5 "2021-03-15T13:56:42Z")

</div>

For anyone seeing this. This “issue” has been closed, but not resolved. HS decided to take a completely different approach, to a very simple problem. ie, the “solution” is now worse than the problem they wanted to fix.

Scott

---

<div class="post-metadata">

**Author:** ![YiRui\_Chua](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/yirui_chua/32/23766_2.png) [@YiRui\_Chua](https://community.hubspot.com/u/YiRui_Chua)\
**Post date:** [July 12, 2021, 5:58am UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/6 "2021-07-12T05:58:32Z")

</div>

Hi team,  
Sometimes customers only want file types that are related to images, having this would be important to them.  
Hope to see an update!

---

<div class="post-metadata">

**Author:** ![marth](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/marth/32/7115_2.png) [@marth](https://community.hubspot.com/u/marth)\
**Post date:** [October 19, 2021, 3:11am UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/7 "2021-10-19T03:11:41Z")

</div>

I am currently new to Hubspot and been wondering how to do file restriction. I am surprised that this is not a feature yet. I think this is an important feature to have so that you can make sure the users are uploading the correct files you want.

---

<div class="post-metadata">

**Author:** ![SOxley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/soxley/32/26012_2.png) [@SOxley](https://community.hubspot.com/u/SOxley)\
**Post date:** [October 29, 2021, 10:10am UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/8 "2021-10-29T10:10:30Z")

</div>

We’ve had a few fraud and hack attempts on our file upload form.

We’d like to restrict it to a .STL file as this is the one we need to quote and it will prevent virus uploads.

---

<div class="post-metadata">

**Author:** ![Julia\_Plytix](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@Julia\_Plytix](https://community.hubspot.com/u/Julia_Plytix)\
**Post date:** [November 9, 2021, 12:14pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/9 "2021-11-09T12:14:05Z")

</div>

Hey,

In my case I want users to upload some pieces of information and I would like that Hubspot provides some kind of security system which can scann the uploaded documents, and avoid any kind of malware, virus, etc.

Thanks Hubspot 😉

---

<div class="post-metadata">

**Author:** ![MikeRahmati](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@MikeRahmati](https://community.hubspot.com/u/MikeRahmati)\
**Post date:** [January 20, 2022, 7:59am UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/10 "2022-01-20T07:59:02Z")

</div>

+1 on this idea

---

<div class="post-metadata">

**Author:** ![YTvirtuosity](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ytvirtuosity/32/59606_2.png) [@YTvirtuosity](https://community.hubspot.com/u/YTvirtuosity)\
**Post date:** [March 21, 2022, 8:52am UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/11 "2022-03-21T08:52:18Z")

</div>

+1 we need this feature

---

<div class="post-metadata">

**Author:** ![Josh\_C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josh_c/32/60590_2.png) [@Josh\_C](https://community.hubspot.com/u/Josh_C)\
**Post date:** [May 31, 2022, 10:39pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/12 "2022-05-31T22:39:22Z")

</div>

I’m shocked HS would allow ANY file type to be uploaded to their system. This is extremly dangerous not only for them but to we the end-users who can open any file submitted which can do damage to our own systems. Upvote.

---

<div class="post-metadata">

**Author:** ![JSeewald](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@JSeewald](https://community.hubspot.com/u/JSeewald)\
**Post date:** [August 11, 2022, 12:44pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/13 "2022-08-11T12:44:59Z")

</div>

This feature would be very necessary. Because if the file upload ist not restricted by file type, also an exe data can be uploaded. This could be dangerous.

---

<div class="post-metadata">

**Author:** ![NEspanhol](https://avatars.discourse-cdn.com/v4/letter/n/c0e974/32.png) [@NEspanhol](https://community.hubspot.com/u/NEspanhol)\
**Post date:** [August 11, 2022, 3:16pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/14 "2022-08-11T15:16:56Z")

</div>

It would be great if we had that option. Cybersecurity is really important now!

---

<div class="post-metadata">

**Author:** ![cserrano8](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@cserrano8](https://community.hubspot.com/u/cserrano8)\
**Post date:** [September 28, 2022, 12:44pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/15 "2022-09-28T12:44:39Z")

</div>

nice idea! we also have the same issue, would be extremely helpful. please Hubspot keep us posted about it!

---

<div class="post-metadata">

**Author:** ![KSmith44](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@KSmith44](https://community.hubspot.com/u/KSmith44)\
**Post date:** [January 6, 2023, 1:27am UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/16 "2023-01-06T01:27:25Z")

</div>

Please add this feature - it would be extremely beneficial for our business.

---

<div class="post-metadata">

**Author:** ![DOctober](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@DOctober](https://community.hubspot.com/u/DOctober)\
**Post date:** [March 14, 2023, 6:11am UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/18 "2023-03-14T06:11:40Z")

</div>

I’m genuinely baffled why this isn’t implemented yet. It’s been almost 6 years. This should be a standard feature by now.

---

<div class="post-metadata">

**Author:** ![MClouatre](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@MClouatre](https://community.hubspot.com/u/MClouatre)\
**Post date:** [March 22, 2023, 9:15pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/19 "2023-03-22T21:15:55Z")

</div>

Definately a must!! @DOctober same

---

<div class="post-metadata">

**Author:** ![CDow](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cdow/32/54892_2.png) [@CDow](https://community.hubspot.com/u/CDow)\
**Post date:** [May 26, 2023, 3:37pm UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/20 "2023-05-26T15:37:39Z")

</div>

From a code perspective this is not even that big of a change as far as the input itself is concerened. Upvoting again as this is an obvious addition.

---

<div class="post-metadata">

**Author:** ![SH6](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@SH6](https://community.hubspot.com/u/SH6)\
**Post date:** [May 31, 2023, 7:49am UTC](https://community.hubspot.com/t/file-upload-restrict-by-type/2575/21 "2023-05-31T07:49:34Z")

</div>

+1 for this feature.

[Next page](https://community.hubspot.com/t/file-upload-restrict-by-type/2575.md?page=2)
