[hunchentoot-devel] Controlling file uploads with hunchentoot

Semion Prihodko semion.ababo at gmail.com
Tue Dec 8 08:54:07 UTC 2009


Hi Hans.

I've implemented a hook in rfc2388:parse-mime as you said me. Now I have the
folowing little question. Can I be sure that EVERY request using POST method
will initiate invocation of rfc2388:parse-mime? Thanks a lot.

2009/12/2 Semion Prihodko <semion.ababo at gmail.com>

> Thank you very much. I'll think about it.
>
> 2009/12/2 Hans Hübner <hans.huebner at gmail.com>
>
>> On Wed, Dec 2, 2009 at 10:47, Semion Prihodko <semion.ababo at gmail.com>
>> wrote:
>>
>> >> Do you want to decide whether to accept an upload by looking at the
>> file name or the
>> >> multipart header?
>> > yes.
>>
>> Assuming that "yes" means "I want to look at the file name":  You can
>> implement your own version of MAKE-TMP-FILE-NAME which checks the file
>> name and generates an error if it does not suit.  If you want to look
>> at other MIME headers in the body part to decide whether the upload
>> should proceed, you'll need to change the rfc2388 library.  I'd
>> implement a hook function that would be called from RFC2388:PARSE-MIME
>> for each body part with the headers as argument.
>>
>> -Hans
>>
>> _______________________________________________
>> tbnl-devel site list
>> tbnl-devel at common-lisp.net
>> http://common-lisp.net/mailman/listinfo/tbnl-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20091208/8f5b350c/attachment.html>


More information about the Tbnl-devel mailing list