I have created a hidden form element
As a workaround, you can also add the required hidden parameters as GET parameters in the form's action attribute:
//rest of the form here
this will allow the request.getParameter("imgUploadObjId") call to work.
request.getParameter("imgUploadObjId")