Restriction for specific file extension
Hi ,
I am using Owncloud 4.5.1 & would like to apply upload restriction for specific file extension such as *.exe, *.mp3, *.msi etc.
I believe this is possible with sync client. But I want to apply this restriction for direct web browser upload.
Eagerly waiting for reply, & suggestions.
Thanks, Milind
Hey @milind, is this still current? What’s the reason you would like to apply upload restrictions?
In general we want to restrict as little as possible because there are usually other ways to solve this better (security checks for example). It’s very confusing if people are not allowed to upload a file just based on a an arbitrary file extension. You can already limit maximum upload size with PHP or Apache for instance.
Hi,
I need also this feature : restrict file upload For me, just allow pdf, xls, xlsx, doc, docx, ppt, pptx and openoffice format.
Why ? Our users, even don't know how to rename files! and if we let us without restriction, they will upload mp3, jpg...avi I know, we can fix upload size. For example: We actually put 12MB size for upload and 1GB for user. This morning, someone has upload all his personal photos : 596 MB! ;-)
Thank you very much.
Cheers,
Wesley
Hi! Yo can do it with modsecurity. Check this! can be usefull. I did it for ownclowd and it works. http://blog.mtu-it.com.ar/?p=488
@milind @wesley974 we’ll most probably have no one of the community working on it. If you are interested on getting this feature, please get in contact with ownCloud Inc. (http://owncloud.com ) so a developer can be paid to implement it. :)
check https://github.com/musaa32/owncloud8-extended
@musaa32 instead of forking ownCloud as a whole, it would make way more sense to write an app for it. See the documentation for how to do that.
i know that an app would make more sense, but the problem with apps are if there is a major release, the whole app must be adapted and some parts will not work. i have some apps which worked on 7.0.4 but don't work properly in oc8.. therefore this way is more practical for me :)
@musaa32 it’s not practical for anyone else though then. ;) Unfortunately no one will really want to bother to completely replace their ownCloud like this.
I'm having trouble with file extensions, does anyone know if someone created an app to do the restriction?
@musaa32 Still your version of oC 8 needs to be adapted to the next major version so i don't see a difference between adapting the changes to the oC core or an app itself.
i know that an app would make more sense, but the problem with apps are if there is a major release, the whole app must be adapted and some parts will not work. i have some apps which worked on 7.0.4 but don't work properly in oc8.. therefore this way is more practical for me :)
thats that @musaa32 said are true, oc are in stupid constant changes and developers must spend time that no have to "adap" app to the changes, in many ways that changes does not make sense in the important functionallity!
by example, to make the mail app work we need php 5.4 and oc 8.X why, if the oc-roundcube works perfectly in all oc version since 5.0 until 8.X api cahnges and app must be abandoned!
and @musaa32 i try to track u'r changes, and i like the idea, this can be made trough themeing event change folking, i'll make a gitlab PRIVATE repo and try to track u'r changes.. due i really hate the oc8 series and opnly uses oc7 due still works with debian lenny and squeeze also in php 5.3
in u'r repo there's no issues only pull request.. there's another possibility to collaborate ithout made pull requests? @musaa32 ?
Just the $random "I have no idea about app development and just throwing in random no-knowledge stuff in here" post... :see_no_evil:
thats that @musaa32 said are true, oc are in stupid constant changes and developers must spend time that no have to "adap" app to the changes, in many ways that changes does not make sense in the important functionallity!
https://owncloud.org/community/code-of-conduct/ - thanks.