Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi Guys

I'd like to create an online form using couch, but it would need an upload area so users can attach images is this possible?

Cheers

James
Hi James,

There is a workaround discussed at viewtopic.php?f=4&t=6959 that can be used to send uploaded images as email attachments - but I suppose you wish to store uploaded files on your server rather than to send them as email attachments.

I am afraid but I have deliberately abstained from coding up this feature as it has, if not used right, the potential of creating security vulnerabilities on your site.

If you wish, however, you can still use the method outlined in the post mentioned above to store uploaded images. Use the validation method to do all the grunge work of security validations and then in the <cms:if k_success > block of your form use raw PHP to get uploaded file from $_FILES global array and store it anywhere you desire.

Hope this helps.
2 posts Page 1 of 1