Thanks alot! That solves the problem
Another observation, I find that if I do not include this line:
<input type="file" name="theimage">
in the uploadproduct.tmpl, after I submit the ad, instead of seeing Successful uploading the ad", it will go back to:
Step 1 of 3
Choose the type of ad you want to place:
Any tips ?