Laurie Nason wrote:
OK - here is my input form <dtml-in "PARENTS[0].objectValues(['Specimen'])" sort="specimenid"> <dtml-var sequence-item> <input type="file" name="<dtml-var id>" value="Add image to this specimen"><br> </dtml-in>
And here is my handling form: <dtml-in "REQUEST.form.keys()"> <dtml-var sequence-item>:<dtml-var expr="_[_['sequence-item']]"><br> <dtml-if "_[_['sequence-item']]"> <dtml-with "_.getitem(_['sequence-item'])"> <dtml-call expr="manage_addProduct['ExtFile'].manage_addExtImage(id='test',file=REQUEST .form[_['sequence-item']], create_prev=1, permission_check=1)"> </dtml-with> </dtml-if> </dtml-in>
When I run this I get the html source as
Specimen_288:<Specimen instance at 893b520><br> Specimen_289:<Specimen instance at 8874568><br> Specimen_291:<Specimen instance at 8936fb8><br> Specimen_290:<Specimen instance at 86d6868><br> Specimen_293:<Specimen instance at 89d9fe0><br> Specimen_292:<Specimen instance at 88c22c8><br> Specimen_286:<Specimen instance at 893b5e0><br> Specimen_287:<Specimen instance at 87fc188><br>
Hope this helps! Laurie
Maybe try: <input type="file" name="<dtml-var id>:ignore_empty" value="Add image to thisspecimen"><br> which should not return any empty file fields. hth, -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>