<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "> Do you want to decide<br>whether to accept an upload by looking at the file name or the<br>multipart header? > yes.</span><div>
<font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><span class="Apple-style-span" style="font-size: 13px; "></span><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Thank you for reply.<br>
</span></font><br><div class="gmail_quote">2009/12/2 Hans Hübner <span dir="ltr"><<a href="mailto:hans.huebner@gmail.com">hans.huebner@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Dec 1, 2009 at 21:56, Semion Prihodko <<a href="mailto:semion.ababo@gmail.com">semion.ababo@gmail.com</a>> wrote:<br>
> I have the folowing question. Is there a posibility to check<br>
> multipat/form-data request format before uploading files? I would like to<br>
> write request handler which can check name and MIME of next file to be<br>
> uploaded to have a possibility to abort request processing without wasting<br>
> server resources while uploding huge files.<br>
<br>
</div>Hunchentoot uses the rfc2388 library, which does not provide hooks<br>
beyond the MAKE-TMP-FILE-NAME function which is called when a file is<br>
being uploaded, to determine its filename.  I have been wanting more<br>
customizability in the past, but we've never made that happen because<br>
we thought that we'd replace the rfc2388 library eventually.  This has<br>
not happened, and it may not happen soon.<br>
<br>
What exactly are you looking for, though?  Do you want to decide<br>
whether to accept an upload by looking at the file name or the<br>
multipart header?  Or do you want to inspect the uploaded data while<br>
uploading?<br>
<br>
-Hans<br>
<br>
_______________________________________________<br>
tbnl-devel site list<br>
<a href="mailto:tbnl-devel@common-lisp.net">tbnl-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/tbnl-devel" target="_blank">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br>
</blockquote></div><br></div>