Hippo CMS How to fileUpload


#1

Hello,

We are trying to upload files with Hippo. We are guiding ourselves with the document that we found inside the page of OneHippo, https://www.onehippo.org/library/enterprise/enterprise-features/enterprise-forms/using-file-uploads.html

We have defined a page, to which we associate a component and we pass the parameters for fileupload
name: fileuploadEnabled value: true
name: fileuploadMethod value: filesystem

The form looks like this

<form id="ik_sy_open_form" method="post" action="${actionURL}&${_csrf.parameterName}=${_csrf.token}" enctype="multipart/form-data">
	<div class="container_12" style="margin-left:0px;">
		<div class="grid_5 fake_file" id="upload-file-container">
			<span class="d-inline-block">Load an existing file</span>
			<button id="browse_button" class="btn btn-primary ml-sm-3 mt-3 mt-sm-0" data-brackets-id="17079">Open</button>
		</div>
		<div id="sy_submit_div" class="grid_2">
			<input id="file_input" type="file" name="file_input" class="file" noscript="true">
			<input id="serie" name="serie" value="test" type="hidden">
		</div>
	</div>
</form>

In addition not saving the file that we sent, the “serial” parameter does not arrive.

Do we need to specify the “file_input” and “serial” parameters in the component?

Thanks in advance


#2

are you using enterprise forms plugin?