I have an image upload form that is being added to
the_content using a filter. However, the existence of this image upload form makes it so that comments cannot be added. Because there are two submit buttons, the comment submit button seems like it's actually submitting the image upload form.
Here is the form:
<form method="post" action="" enctype="multipart/form-data" > <li><input type="file" accept="image/*" name="uploaded_attachment" id="uploaded-attachment"></li> <li><input type="submit" value="Upload"></li> <form>
Is there an easy way to make it so the comment submit only submits comments and this form only submits the image upload? Thanks in advance.