Try the fastest and simplest way to install ONLYOFFICE

Disable Certain File Type Upload

Tech support for Enterprise Version

Disable Certain File Type Upload

Postby vponteras.cri » Mon Aug 28, 2017 9:17 pm

Hi,

I just want to know how to disable upload for certain file types, because I saw this on the javascript file.

Code: Select all
        if (config.UploadableExts && jq.inArray(ext, config.UploadableExts) == -1) {
            displayInfoPanel(config.NotSupportedFormatErrorMsg || "Sorry, this file format isn't supported", true);
            return false;
        }
User avatar
vponteras.cri
 
Posts: 2
Joined: Mon Aug 28, 2017 9:14 pm

Re: Disable Certain File Type Upload

Postby Alexander_mb » Tue Aug 29, 2017 2:28 pm

Hello vponteras.cri ,

The part of code you have mentioned is from the file upload manager, which is used only in Forum section of the Community module. The one used in Documents module is different and there are no file type limits.
Alexander_mb
 
Posts: 26
Joined: Tue Aug 08, 2017 2:01 pm

Re: Disable Certain File Type Upload

Postby vponteras.cri » Thu Aug 31, 2017 2:25 pm

Ah I see. So is there any other way to achieve this?
User avatar
vponteras.cri
 
Posts: 2
Joined: Mon Aug 28, 2017 9:14 pm

Re: Disable Certain File Type Upload

Postby Alexander_mb » Mon Sep 04, 2017 9:56 am

Hello vponteras.cri ,

Unfortunately, there is no opportunity to do this.
Alexander_mb
 
Posts: 26
Joined: Tue Aug 08, 2017 2:01 pm


Return to Enterprise Version

Who is online

Users browsing this forum: No registered users and 1 guest