slight;y related... what about file uploads?

If i want an upload operation to time out to stop users uploading huge files
can i use cflock?

Kola

-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: 04 June 2001 13:15
To: CF-Talk
Subject: RE: cfhttp/cffile locking?


No, the first poster said it right,

> > If other pages in your application, or other applications on your
> > server write to the file, then you *do* need to lock the cffile, (for
> > both the read and write).

Notice - both read and write. You should use an exclusive lock around the
write, and a ReadOnly lock around the reads, even if you only write once a
day. Sure, with one write you will probably never run into trouble w/o
locks, but since it takes about 2 seconds to type in the code, why _not_ do
it?

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: Michael Lugassy [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 03, 2001 12:34 PM
> To: CF-Talk
> Subject: Re: cfhttp/cffile locking?
>
>
> Let me see if I got this figured out:
>
> About CFFILE:
> You're saying that if I read lots of times from the file and just doing
> one update (daily, off-hours) I just need to exclusive lock this
> one cffile
> write once?
> no lock around cffile read? or include that uses the same file?
> you see - I'm generating once a day a designed html page with the latest
> news flashes.
> this page is included in alot of my other pages in the site. <cfinclude>
> but it is only updated by a single process that I scheduled through
> CF-Admin.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to