<p>The ability to restrict the allowed file types is defined on a per-field level.  </p>

<p>In order to do what you're looking for, it would have to be defined on a per-asset source level, so no... it's currently not possible natively.</p>

CC BY-SA 3.0
2015-01-15T17:01:05.207Z
2015-01-15T17:01:05.207Z
Brad Bell
<p>I made two different types of Assets: one for images and one for PDF. 
They works in 2 differents folder to avoid to mix them.</p>

<p>Using them inside entries it works good, if I try to upload something different I receive an error message.</p>

<p>If I click Assets on the main Menu (not inside entries) I'd like limit the upload to the asset I choose.</p>

<p>It means that I would like prevent to upload a pdf on asset images and vice versa and I'd like also to prevent uploading of any different file types.</p>

<p>Not sure if Im doing something wrong or its the natural behaviour of CRAFT.</p>

<assets><upload>
Prevent to upload any kind of file on Asset menu
# Prevent to upload any kind of file on Asset menu

(Asked by: username_0 on 2015-01-15)

I made two different types of Assets: one for images and one for PDF.
They works in 2 differents folder to avoid to mix them.

Using them inside entries it works good, if I try to upload something different I receive an error message.

If I click Assets on the main Menu (not inside entries) I'd like limit the upload to the asset I choose.

It means that I would like prevent to upload a pdf on asset images and vice versa and I'd like also to prevent uploading of any different file types.

Not sure if Im doing something wrong or its the natural behaviour of CRAFT.

**Tags:** assets, upload

---

## 1 answers

### Answer by username_1 on 2015-01-15. Score: 2

The ability to restrict the allowed file types is defined on a per-field level.

In order to do what you're looking for, it would have to be defined on a per-asset source level, so no... it's currently not possible natively.


---

