couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: rename document attachment
Date Tue, 08 Sep 2009 17:13:25 GMT

On 8 Sep 2009, at 18:51, Chris Anderson wrote:

> 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)

+1, this'd be a good implementation. Can anyone open a JIRA ticket?
https://issues.apache.org/jira/browse/COUCHDB

Cheers
Jan
--
>
>>
>> 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