[Bese-devel] Re: Streams Binary Flexi?
Marco Baringer
mb at bese.it
Fri Feb 17 12:45:40 UTC 2006
Henrik Hjelte wrote:
> On ons, 2006-02-15 at 10:44 +0200, Aycan iRiCAN wrote:
>> henrik hjelte <henrik at evahjelte.com> writes:
>>
>>> On tis, 2006-02-14 at 12:30 -0500, Nathan Bird wrote:
>>>> I'm currently looking at some bug in ucw where it is having a hard time
>>>> dealing with form posts using mod_lisp
>>> With my latest bugfix it works for me with a fresh get from darcs. At
>>> least the form demo, the form upload demo doesn't work like before
>>> because mime-part-body now returns a binary-stream to a temporary file.
>>> Which is really quite nice.
>> It's nice but it's hard to use in some cases. Think of an upload form
>> that get's a picture from user. If you need to make a preview for this
>> form, you have to copy that temporary file into your webroot and
>> rename it's extension (to be able to show in a web page). Your
>> temporary files are growing with a factor of 2 now.
renaming is a simple and fast operation (as long as the orginial and the
dest are on the same file system), so you've a problem here only when a)
the files are large and b) /tmp/ and /webroot/ are on differente
filesystems. the easy solution is to just tell ucw to put these temp
files an the same filesystem as your web root, redefine
ucw::make-temp-filename to this:
(defun make-temp-filename ()
(strcat "/path/to/webroot/incoming/ucw" (princ-to-string
(get-universal-time))))
will this do or is there some other issue i'm missing?
--
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
-Leonard Cohen
More information about the bese-devel
mailing list