incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: rename document attachment
Date Tue, 08 Sep 2009 16:51:39 GMT
On Tue, Sep 8, 2009 at 4:58 AM, Shawn McDermott<sgtmcd@gmail.com> wrote:
> On Thu, Sep 3, 2009 at 5:26 PM, Oliver Boermans <boermans@gmail.com> wrote:
>
>> 2009/9/3 Shawn McDermott <sgtmcd@gmail.com>:
>> > I have a simple html/javascript app that uploads an attachment to a
>> > document.  However, once it is uploaded I want to rename it to a
>> consistent
>> > name.  Is there a way to do this in 0.9.1?
>>
>> I expect this would require some kind of middleware to handle the file
>> upload so the file can be renamed before it is inserted into couchdb.
>> If I’m wrong I’d love to be corrected.
>>

If we don't already support it, this would be a good use of the HTTP
MOVE verb (since it operates on a single document it could be atomic)

>
> Thanks.  I suspected that.  I was attempting to develop this simple app with
> no need for a middle tier.
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message