You are here: Re: Limit folder (with subfolders) capacity « PHP Programming Language « IT news, forums, messages
Re: Limit folder (with subfolders) capacity

Posted by freduchi on 10/28/87 11:56

Well, I am giving the users the possibility to upload files by two
ways.

In the first way (photo upload) I have the control over the code (I
have written it) and is easy to control the number and size of files
uploaded.

In the second way It is more difficult because I am using a third party
software.This sotware is a wysiwyg with file upload posibility.It is
called fckeditor.I am using it in several services(messages between
users, comments about users, blogs... ).This sofware gives you a very
nice wysiwyg interface(with upload interface included) and returns the
result as html code in a html text_area.I insert this html code in a
database.

I have "semisolved" the problem.
I have had to rewrite some code of fckeditor.

It hasn´t been very difficult but doing all this by code isn´t a very
flexible solution.

Isn´t There a way to lock a folder to a maximum size.
Of course I assume the solution (if exists) will be platform dependant;

Thanks.
Sincerely - SPEASEMAR - Spain
www.speasemar.com

Alvaro G. Vicario ha escrito:

> *** freduchi@gmail.com escribió/wrote (24 Aug 2006 12:47:28 -0700):
> > I have read about something disk quotas.I am not
> > familiar to this.Would it be useful for my needs?.
>
> I don't think so. Disk quotas allow you to limit the number/size of files a
> user can save in a disk partition. But PHP scripts run with the same system
> user, no matter who's logged in your app.
>
> > If not, Which is the best way to achieve this?.
>
> If I understood correctly, you don't have any control over the database or
> the software that creates the files. So you need a solution that makes the
> software just fail when over quota... :-?
>
> I can't figure out how to do that. You can always remove images after being
> uploaded but that'd be a big mess.
>
> Maybe if you describe how that third party software works we can think of a
> sensible solution...
>
> --
> -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
> ++ Mi sitio sobre programación web: http://bits.demogracia.com
> +- Mi web de humor con rayos UVA: http://www.demogracia.com
> --

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация