core icon indicating copy to clipboard operation
core copied to clipboard

Restriction for specific file extension

Open milind-zz opened this issue 13 years ago • 13 comments

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

milind-zz avatar Jan 10 '13 12:01 milind-zz

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.

jancborchardt avatar Mar 20 '13 13:03 jancborchardt

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

ghost avatar Apr 15 '13 10:04 ghost

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

matimmu avatar May 29 '13 02:05 matimmu

@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. :)

jancborchardt avatar Jun 13 '13 18:06 jancborchardt

check https://github.com/musaa32/owncloud8-extended

musaa32 avatar Feb 24 '15 14:02 musaa32

@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.

jancborchardt avatar Feb 25 '15 12:02 jancborchardt

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 avatar Feb 25 '15 13:02 musaa32

@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.

jancborchardt avatar Feb 26 '15 13:02 jancborchardt

I'm having trouble with file extensions, does anyone know if someone created an app to do the restriction?

cssvh avatar May 12 '15 20:05 cssvh

@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.

ghost avatar Oct 15 '15 06:10 ghost

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 ?

mckaygerhard avatar Oct 15 '15 16:10 mckaygerhard

Just the $random "I have no idea about app development and just throwing in random no-knowledge stuff in here" post... :see_no_evil:

ghost avatar Oct 15 '15 17:10 ghost

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.

LukasReschke avatar Oct 15 '15 17:10 LukasReschke