contact form 7 from wordpress does not attach files

0

I am doing a page with wordpress and I have found an inconvenience when sending emails with attachments using the plugin contact form 7. When I fill out the form, including the attached file and press send, I get this message:

  

"An error has occurred uploading the image"

Does anyone know that it could be wrong? I will leave screenshots and the structure of the form.

<div class="container-fluid">

<div class="container" style="background: #248211;"><p style="color:#fff; padding:10px;">Datos personales</p></div>

<div class="row">

<div class="col-md-4 col-xs-12">

<label> Nombres: (requerido)
    [text* your-name] </label>

</div>

<div class="col-md-4 col-xs-12">

<label> Apellidos: (requerido)
[text* apellidos]</label>
</div>

<div class="col-md-4 col-xs-12 form-control">
<label> Sexo: (requerido)</label>
[radio sexo use_label_element default:1 "Masculino" "Femenino"]
</div>

</div>

<div class="row">

<div class="col-md-6 col-xs-12">
<label> Fecha de nacimiento: (requerido)
[date* date min:1945-01-01 max:2018-01-01]</label>
</div>

<div class="col-md-6 col-xs-12">
<label>Nacionalidad: (requerido) 
[text* nacionalidad]</label>
</div>


</div>

<div class="row">

<div class="col-md-6 col-xs-12">
<label>Tipo de documento: (requerido)
[select tipo_doc include_blank "DNI" "CI" "LE"]</label>
</div>

<div class="col-md-6 col-xs-12">
<label>Número de documento: (requerido)
[text* num_doc]</label>
</div>

</div>

<label> Tu correo electrónico (requerido)
    [email* your-email] </label>

<div class="container" style="background: #248211;"><p style="color:#fff; padding:10px;">Estudios realizados</p></div>

<label>Rama de estudio: (requerido)
[text* rama]</label>

<div class="container" style="background: #248211;"><p style="color:#fff; padding:10px;">Experiencia laboral</p></div>


<label> Experiencia laboral: (requerido)
[textarea* experiencia]</label>

<div class="container" style="background: #248211;"><p style="color:#fff; padding:10px;">Archivos adjuntos</p></div>


<label>Aduntar CV: (requerido)</label>

[file* cv limit:2mb filetypes:pdf|doc|docx|odt]


    <div class="pull-right">
    [submit "Enviar"]
    </div>

    </div>

    
asked by José Miguel Viña 22.05.2018 в 18:01
source

2 answers

0

1- It is likely that you do not have writable permissions to store the file temporarily. Check the folder permissions and try to put them to 775 or 777

2- The location of the temporary folder is wp-content / uploads / wpcf7_uploads by default. It can vary if you have changed the configuration of the load path from wp-content / uploads . In both, check their permissions.

3- Check carefully what type of file you are trying to send by mail.

I hope you have been helpful, more info visit: link

    
answered by 25.05.2018 в 10:26
0

Another option is that you are exceeding the maximum allowed size.

for example you can configure your php.ini with these values:

; Maximum allowed size for uploaded files.
upload_max_filesize = 20M
; Must be greater than or equal to upload_max_filesize
post_max_size = 20M
    
answered by 06.06.2018 в 06:11