Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 9007 invoked from network); 30 Dec 2008 17:12:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Dec 2008 17:12:28 -0000 Received: (qmail 83053 invoked by uid 500); 30 Dec 2008 17:12:27 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 83006 invoked by uid 500); 30 Dec 2008 17:12:27 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 82995 invoked by uid 99); 30 Dec 2008 17:12:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2008 09:12:27 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jwalgran@gmail.com designates 209.85.218.10 as permitted sender) Received: from [209.85.218.10] (HELO mail-bw0-f10.google.com) (209.85.218.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Dec 2008 17:12:19 +0000 Received: by bwz3 with SMTP id 3so16093600bwz.11 for ; Tue, 30 Dec 2008 09:11:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=sAjwiRh7CD1eH4ZuUfETAYdAyb1eCkujC3RQrAhkM9E=; b=S+EWpkbmhRwMbL8ZpfPTbSZyaKnI6fXKjVErgeblcjrf+3JUNk7Z2QJhrOxr0HF9Wc 8bdLzA+GcsyItV24yXin9nvWsz4NaAMP6NvOthv79y8XLP555GGQPzXW+3prKyt5Xq32 EULBnGYRvJWcv7LZj1AcdZcCLnK2fFcZwD36M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=eONBvYk0Zeb0zVOwNry4EQy46XrA4/h2dycfX5NHu4pYc0c3pXzapf4hm4mUNeAS88 70KBr3JZuleTQvo4ti96kSGwkKS4vN49D9vVTqhktORgP/sAWKK4hMYboa2dGpcvJ4rl NOl/7mb8WyR0zm4AraVWQ/PxtIP0j0eBXOz3g= Received: by 10.223.114.135 with SMTP id e7mr10855215faq.89.1230656973856; Tue, 30 Dec 2008 09:09:33 -0800 (PST) Received: by 10.223.114.14 with HTTP; Tue, 30 Dec 2008 09:09:33 -0800 (PST) Message-ID: Date: Tue, 30 Dec 2008 12:09:33 -0500 From: "Justin Walgran" Reply-To: jwalgran@gmail.com To: user@couchdb.apache.org Subject: Re: [jira] Closed: (COUCHDB-167) Files can not be attached to documents with forward slashes in their names to simulate a folder hierarchy In-Reply-To: <74B937E7-F5A4-435C-87EC-87DC4D6AC34C@jasondavies.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <748468271.1228208084256.JavaMail.jira@brutus> <38305035.1230620804557.JavaMail.jira@brutus> <65480B84-780D-472A-B336-900F575B076D@jasondavies.com> <56D233FE-3565-4F1C-90CC-AF9E178A9134@jasondavies.com> <74B937E7-F5A4-435C-87EC-87DC4D6AC34C@jasondavies.com> X-Virus-Checked: Checked by ClamAV on apache.org I was using Futon through Firefox 3.0.5 to upload the attachments. I tried curl and it does work! :) The mime type of the file is "application/x-www-form-urlencoded" when it hits couch, so I need to figure out how to properly PUT the binary file, but it looks like the plumbing is working. Thanks so much! Can anyone reply with the proper arguments I should pass to curl in order to PUT a binary attachment? Thanks. -Justin On Tue, Dec 30, 2008 at 10:41 AM, Jason Davies wrote: > > On 30 Dec 2008, at 14:16, Justin Walgran wrote: > >> I do see that my design documents now show without %2F (awesome) _but_ >> I still have the same issue. When I upload a file named >> "images/pickle.gif" it gets attached as "images:pickle.gif" and can >> only be retrieved by requesting "_design/doc/images%3Apickle.gif" > > How are you uploading the file, are you using Futon? I'm not sure why it's > being attached with a colon used as a separator, but it sounds like the > client you are using is doing some processing on the filename. If you PUT > an attachment (using curl or similar) it should work fine. I'm not sure how > to get Futon to put a slash in the filename in any case, as it just names > the attachment the same as the file you're uploading. If you let me know > how you are doing this maybe I can work up a patch for Futon if it is > needed. > > Jason >