couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <>
Subject Re: Creating attachments from HTML's INPUT type="file"
Date Sun, 19 Apr 2009 02:51:01 GMT
Futon can upload files to CouchDB using a HTML form. Check its source  
on how it does it :)


On 18 Apr 2009, at 21:38, Curt Arnold wrote:

> I've been developing a custom browser-hosted application using  
> CouchDB for a client and have so far been able to avoid introducing  
> an intermediary between the browser and CouchDB (aka a CouchApp).   
> However, I have run into a stumbling block trying to support  
> uploading attachments to items from the browser.
> The only mechanism that seems to provide access to the local  
> filesystem is HTML's file-select control and does not appear to  
> provide a mechanism to control the request sent to the action URL so  
> that it could conform to the CouchDB API.
> Would it be practical or desirable to introduce an endpoint that  
> could directly process the request that would be sent from such a  
> form?
> Would anyone be interested in taking a first pass at it?
> How difficult would it be for an Erlang newbie to take a shot at it  
> for his own use?

View raw message