Question

I've just started developing a web page with jquery mobile using couchdb and iriscouch as the database.

what i'd like to know is if i can get a / symbol in the attachment names? What i'd like to achieve is that i have one document which contains the HTML files as attachents and all the images and whatnot also as an attachments, but with the name image/testimage.jpg as its name. Windows ins't letting me name files with / in their name and I can't rename the attachments in futon after attaching them.

This is so that I can use the same html files that I already have and won't have to change the src's of all the images and other files i have in the HTML.

Is this even possible?

Was it helpful?

Solution

Yes, it is possible as long as the / is properly URL encoded as %2F.

OTHER TIPS

Figured out that the problem lies in the futon couchapp. It doenst handle the / in names properly, propably does not handle encoding or the / letter is denied, didn't check the sources, but when using the HTML Api i can do attachments with / in their name properly.

This allowed me to very easily port my HTML and JS files and source file s which were in folders to CouchDB. Another really helpful application is CouchApp, which maps directory structures straight into couchDB and created attachements with / letter in their names.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top