[owncloud-devel] Create file upload restrictions for users through owncloud server

Syed Alam Abbas Imtiyaz syedalamabbas at gmail.com
Fri Feb 12 03:44:20 GMT 2016


Pablo,
        I don't want to limit file size, but the upload file size for my
owncloud users, but which is different for different folders. Say 100 MB
for one folder and 500 MB for the other, now can I still use a parameter
such as what you defined ?

Thanks
Alam

On Thu, Feb 11, 2016 at 10:06 PM, Pablo Marques <pmarques at miamilinux.net>
wrote:

> Alam
>
> I do not believe you can limit file size on any file system.
>
> What you can definitely do in php.ini is to set this parameter:.
>
> upload_max_filesize = XX
>
> auto explanatory...
>
> Pablo
> ------------------------------
> *From: *"Syed Alam Abbas Imtiyaz" <syedalamabbas at gmail.com>
> *To: *"devel" <devel at owncloud.org>
> *Sent: *Thursday, February 11, 2016 6:36:43 PM
> *Subject: *Re: [owncloud-devel] Create file upload restrictions for users
> through owncloud server
>
> Dear Pablo,
>                    Thanks for the response. However, I don't want
> directory level quotas, I can allow unlimited for the user, I only want
> file size restriction. To explain it more, lets say you have folder called
> images, I want to set that all images < 100 MB, and similarly for a folder
> called video,  all files are < 500 MB. I don't care how many files, I only
> care what is the file size.
>                    Now I am still reading, but does GlusterFS / XFS has
> that capability ?
>
>
> Thanks
> Alam
>
> On Thu, Feb 11, 2016 at 5:23 PM, Pablo Marques <pmarques at miamilinux.net>
> wrote:
>
>> Alam
>>
>> Try directory quotas on the backend storage file system.
>>
>> With XFS
>> https://docs.oracle.com/cd/E37670_01/E37355/html/ol_prjquo_xfs.html
>>
>> GlusterFS has a very easy way to implement simple size quota on any
>> directory:
>> http://www.gluster.org/community/documentation/index.php/Directory_Quota
>>
>> Regards
>>
>> Pablo
>> ------------------------------
>> *From: *"Syed Alam Abbas Imtiyaz" <syedalamabbas at gmail.com>
>> *To: *"devel" <devel at owncloud.org>
>> *Sent: *Thursday, February 11, 2016 4:43:59 PM
>> *Subject: *[owncloud-devel] Create file upload restrictions for users
>> through        owncloud server
>>
>> ownCloud version: 8.2.2
>> Webserver: apache2
>> Database: MySQL
>> OS: Linux
>> PHP version: 5.6.x
>>
>>
>> Hello Everyone,
>> I tried posting this on the owncloud support forums, but @RealRancor
>> advised me to use this list. You can see my question on the forums
>> https://forum.owncloud.org/viewtopic.php?f=36&t=32993.
>>
>>
>> I am still learning about owncloud and its amazing apps capability, so
>> please elaborate your answers if you can. I have a simple requirement. Lets
>> say I start a owncloud webserver on a machine. I ask users to upload their
>> pictures and videos on lets say swim club trips. I want to be able to build
>> an app with a functionality that restricts the users with two folders
>> images and videos to file size limits 100 MB and 500 MB respectively. Or
>> there a better way without using app framework ? I know there is a way to
>> set the global owncloud upload limit, I also know that there is a place
>> where user skeleton or default files can be created.
>>
>> I am not looking for a spoon-fed answer, just general directions where I
>> can go and look, so I am able to achieve the said functionality of
>> different upload restrictions for different directories at the user/ client
>> level.
>>
>> Let me know your thoughts about this.
>>
>> I am reading this documentation, and understanding it, but can you sketch
>> roughly how would you / or any one with knowledge of owncloud and apps
>> would go about building such an application. Just some starting pointers
>> please, since I don't have much prior experience with web development.
>>
>>
>> Thanks
>> Alam
>>
>>
>> ------------------------------
>>
>> Spam
>> Phish/Fraud
>> Not spam
>> Forget previous vote
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at owncloud.org
>> http://mailman.owncloud.org/mailman/listinfo/devel
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at owncloud.org
>> http://mailman.owncloud.org/mailman/listinfo/devel
>>
> ------------------------------
>
> Spam
> Phish/Fraud
> Not spam
> Forget previous vote
>
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel
>
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel
>
>


-- 

*Syed Alam Abbas*
*HEC *215*, *Computational Imaging Lab <http://cil.cs.ucf.edu/>

*Graduate Student, EECS-UCF*

*Gmail Phone: *(507) 867-8629

*Email: - syedalamabbas at gmail.com <syedalamabbas at gmail.com>*

*   syedalamabbas at knights.ucf.edu <syedalamabbas at knights.ucf.edu>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20160211/87c27386/attachment-0001.html>


More information about the Devel mailing list