Search

I’ve got a simple form bound to a section. One of section fields is file upload.

So I need to get files uploaded from front end form. But it fails all the time. Somehow it takes file upload field as empty even though there’s a file chosen. Got stuck now… What can be wrong?

Here’s the form I’ve made

<form action="?debug" id="" method="post" enctype="multipart/form-data" > 
<input name="MAX_FILE_SIZE" type="hidden" value="5242880" />
<input name="send-email[recipient]" value="admin_, admin" type="hidden" />
<label for="fields[vashe-imya]" id="">???? ???:</label>
<input name="fields[vashe-imya]" type="text"
id="" /> <label
for="fields[vash-e-mail]" id="" >??? E-mail:</label> <input
name="fields[vash-e-mail]" type="text"
id="" /> <label for="fields[file]"
id="" >?????????? ???? ?
??????:</label> <input
name="fields[file]" type="file" />
<label for="fields[soobschenie]" id="" class="em8 dark_grey">?????????:</label> 
<textarea name="fields[soobschenie]" rows="15" cols="50" id="" />
<input class="button_submit em8" type="submit" name="action[get-resume]"
value="?????????" id="" />
</form>

That’s the event error

<file type="missing" message="'file' is a requred field." /> 

What Symphony version are you using? Have you tried the patch mentioned in this issue?

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details