Forum Discussion

brian q.'s avatar
brian q.
Helpful | Level 6
2 years ago

Restricting folder to certain file types? Is it possible?

Is there any way to set up a folder so that it can only accept certain filenames, and or reject other filenames? 

 

While my goals is actually by 'filetype', simply name matches/rejections would suffice the most common use case...

 

Ie prevent .zip files from populating a folder, or allow only *.zip to be dumped to a given folder.  

 

The prevention would take place prior to upload/sync, not after the file is uploaded/syncd.    Today we solve this problem via after-sync, simply removing/keeping the matching files.    But of course that might be hours after a 100GB file is sync'd that we didn't want it. 

 

My goals is stopping the problem on the user side of things, before they start doing the wrong thing... ie putting *.zip where they don't belong. 

1 Reply

  • Megan's avatar
    Megan
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    Hey brian q., thanks for posting here! 

     

    The key thing here, is that you wish for the restriction to happen before the content is synced or uploaded.

     

    We don't have an exact feature to what you're asking. I'm not entirely sure if an API would work, but it's possible but I'd also have to suggest either an automation or a naming convention on our end. 

     

    You might want to take a look into these options, to find out if they work similarly for what you wish to achieve on your end. 

     

    Thanks a bunch! 

About Create, upload, and share

Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!