guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Uploading Word documents, PDFs, PNG files etc


From: Ludovic Courtès
Subject: Re: Uploading Word documents, PDFs, PNG files etc
Date: Sun, 17 May 2009 23:55:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

Hello,

Sebastian Tennant <address@hidden> writes:

> cgi.scm currently uses the following patterns and I can't think of an
> alternative way of doing it:
>
>  (let ((name-rx     (make-regexp "name=\"([^\"]*)\""))
>        (filename-rx (make-regexp "filename=\"*([^\"\r]*)\"*"))
>        (type-rx     (make-regexp "Content-Type: ([^\r]*)\r\n" regexp/icase))
>        (value-rx    (make-regexp "\r\n\r\n")))
>    ...)

Can't this be applied just to the header part of the blob rather than to
the whole blob, including binary data?

Thanks,
Ludo'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]