# (IGNORE) Does allowedFileTypes work with S3 uploads?

**URL:** <https://community.transloadit.com/t/ignore-does-allowedfiletypes-work-with-s3-uploads/14692>\
**Category:** Uppy\
**Created:** [March 27, 2018, 2:45pm UTC](https://community.transloadit.com/t/ignore-does-allowedfiletypes-work-with-s3-uploads/14692 "2018-03-27T14:45:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbandes](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/cbandes/32/56_2.png) [@cbandes](https://community.transloadit.com/u/cbandes)\
**Post date:** [March 27, 2018, 2:45pm UTC](https://community.transloadit.com/t/ignore-does-allowedfiletypes-work-with-s3-uploads/14692/1 "2018-03-27T14:45:40Z")

</div>

I’m trying to use `allowedFileTypes` to limit my uploads to pngs.

I have the following in my uppy init function  
'restrictions: {  
allowedFileTypes: [‘image/png’]  
},`

~but if I try to upload, say, a zip file, it doesn’t give me any trouble, it just uploads the file as if there was no restriction at all.~

EDIT: I was initializing uppy all wrong. This works fine now.
