From sebyte at smolny.plus.com Tue Jan 15 22:31:41 2013 From: sebyte at smolny.plus.com (Sebastian Tennant) Date: Tue, 15 Jan 2013 22:31:41 +0000 Subject: [hunchentoot-devel] Calculating size of the uploaded file References: Message-ID: <8v7ujcxe.fsf@chimera.gnukahvesi.net> Whoops! (or (tmp-directory *acceptor*) *tmp-directory*) is what I meant to say. Seb From sebyte at smolny.plus.com Tue Jan 15 22:24:18 2013 From: sebyte at smolny.plus.com (Sebastian Tennant) Date: Tue, 15 Jan 2013 22:24:18 +0000 Subject: [hunchentoot-devel] Calculating size of the uploaded file References: Message-ID: Quoth Hans H?bner : > [...] There are some pending changes regarding how uploaded files are handled > which have not been merged because we're waiting for rfc2388 to be updated in > Quicklisp. Has this happened? I have Quicklisp version 2012-12-23 installled and it ships version 1.5 of rfc2388. Also, rfc2388's source directory has the name rfc2388-20121013-git/. Is this a reason for hope? > Maybe these changes help you, too: > https://github.com/fighting-spirit/hunchentoot/commit/301db3d6f6291dd8690b095ee708fff2d53f5664 It looks like *UPLOAD-FILENAME-GENERATOR* does what I need. Alternatively, how about adding a tmp-directory slot to the ACCEPTOR class and then replacing all references to *TMP-DIRECTORY* with: (or (tmp-directory request) *TMP-DIRECTORY*) All I really need is per-acceptor control over the directory into which temporary files are written (in my case, the file name is unimportant) so this would also serve my purposes. Seb From hans.huebner at gmail.com Wed Jan 16 06:22:15 2013 From: hans.huebner at gmail.com (=?ISO-8859-1?Q?Hans_H=FCbner?=) Date: Wed, 16 Jan 2013 07:22:15 +0100 Subject: [hunchentoot-devel] Calculating size of the uploaded file In-Reply-To: References: Message-ID: Sebastian, I have nagged jdz about the pending changes to rfc2388, as they have still not made it into Quicklisp. They are in the parse-mime-change branch of git://github.com/jdz/rfc2388.git, if you're interested. I'm not sure about the general usefulness of a per-acceptor temporary directory. Can't you subclass Hunchentoot's acceptor class and then bind *TMP-DIRECTORY* in a HANDLE-REQUEST :AROUND method? -Hans On Tue, Jan 15, 2013 at 11:24 PM, Sebastian Tennant wrote: > Quoth Hans H?bner : > > [...] There are some pending changes regarding how uploaded files are > handled > > which have not been merged because we're waiting for rfc2388 to be > updated in > > Quicklisp. > > Has this happened? > > I have Quicklisp version 2012-12-23 installled and it ships version 1.5 of > rfc2388. > > Also, rfc2388's source directory has the name rfc2388-20121013-git/. Is > this a > reason for hope? > > > Maybe these changes help you, too: > > > https://github.com/fighting-spirit/hunchentoot/commit/301db3d6f6291dd8690b095ee708fff2d53f5664 > > It looks like *UPLOAD-FILENAME-GENERATOR* does what I need. > > Alternatively, how about adding a tmp-directory slot to the ACCEPTOR class > and > then replacing all references to *TMP-DIRECTORY* with: > > (or (tmp-directory request) *TMP-DIRECTORY*) > > All I really need is per-acceptor control over the directory into which > temporary files are written (in my case, the file name is unimportant) so > this > would also serve my purposes. > > Seb > > > _______________________________________________ > 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: From sebyte at smolny.plus.com Wed Jan 16 10:20:00 2013 From: sebyte at smolny.plus.com (Sebastian Tennant) Date: Wed, 16 Jan 2013 10:20:00 +0000 Subject: [hunchentoot-devel] Calculating size of the uploaded file References: Message-ID: <4nihjupb.fsf@chimera.gnukahvesi.net> Hi Hans, Quoth Hans H?bner : > I have nagged jdz about the pending changes to rfc2388, as they have still > not made it into Quicklisp. ?They are in the parse-mime-change branch > of?git://github.com/jdz /rfc2388.git, if you're interested. > > I'm not sure about the general usefulness of a per-acceptor temporary > directory. ?Can't you subclass Hunchentoot's acceptor class and then bind > *TMP-DIRECTORY* in a HANDLE-REQUEST :AROUND method? Thanks for the tip. Will I ever start thinking more ooply and less procly, I wonder. I've gone with an :AROUND method on POST-PARAMETERS because I want to control the temporary destination directory of file uploads only. Can you forsee a problem with this? Seb -- Emacs' AlsaPlayer - Music Without Jolts Lightweight, full-featured and mindful of your idyllic happiness. http://home.gna.org/eap From hans.huebner at gmail.com Wed Jan 16 10:25:59 2013 From: hans.huebner at gmail.com (=?ISO-8859-1?Q?Hans_H=FCbner?=) Date: Wed, 16 Jan 2013 11:25:59 +0100 Subject: [hunchentoot-devel] Calculating size of the uploaded file In-Reply-To: <4nihjupb.fsf@chimera.gnukahvesi.net> References: <4nihjupb.fsf@chimera.gnukahvesi.net> Message-ID: On Wed, Jan 16, 2013 at 11:20 AM, Sebastian Tennant wrote: > I've gone with an :AROUND method on POST-PARAMETERS because I want to > control > the temporary destination directory of file uploads only. > > Can you forsee a problem with this? > No, that sounds good. If you encounter any problems with the approach, let us know. -Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From plh at golux.podzone.net Fri Jan 18 12:00:20 2013 From: plh at golux.podzone.net (PL Hayes) Date: Fri, 18 Jan 2013 12:00:20 +0000 Subject: [hunchentoot-devel] Bug (+ fix) in (maybe-handle-range-header ...) Message-ID: <50F93954.6050003@golux.podzone.net> Hi, I've found that