Forums

Unable to upload files

nuriaparramacias 15 Jan, 2011
Hello everybody,

I´ve made a form and I´m not able to upload files.

This is the debug code:


Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [clinica] => CSS Pare Palau [servei] => Neurologia [telf] => 4457 [email] => [email]test@hotmail.com[/email] [linies] => Sí [nlinies] => 1 [pipublic] => Sí [npipublic] => 1 [epipublic] => 1 [piprivat] => Sí [npiprivat] => 1 [enprivat] => 1 [rinternacional] => Sí [nrinternacional] => 1 [rnacional] => Sí [nrnacional] => 1 [llibre] => Sí [nllibre] => 1 [cllibre] => Sí [ncllibre] => 1 [apublicacio] => Sí [napublicacio] => 1 [patent] => Sí [npatent] => 1 [conferencia] => Sí [nconferencia] => 1 [comunicacio] => Sí [ncomunicacio] => 1 [poster] => Sí [nposter] => 1 [tesis] => Sí [ntesis] => 1 [tesina] => Sí [ntesines] => 1 [premi] => Sí [npremi] => 1 [entitat] => Sí [nentitat] => 1 [peer] => Sí [npeer] => 1 [button_67] => Envia! [c0cd09dde422950bf5b9c9628ff4fe10] => 1 [1cf1] => c8de686d62248c3ea8d5c59873e1d243 [chronoformname] => Memoria )
$_FILES Array: Array ( [file_64] => Array ( [name] => UCI.doc [type] => application/msword [tmp_name] => /tmp/phpwGZC0T [error] => 0 [size] => 66048 ) )

Form passed the plugins step (if enabled) OK

Find attached the .jpg file of the File Uploads settings.

You can also take a look at the form here: http://www.usr-cliniquesdecatalunya.com/index.php?option=com_chronocontact&chronoformname=Memoria

And finally, this is the code regarding the uploading instruction:

<div class="form_item">
<div class="form_element cf_fileupload">
<label class="cf_label" style="width: 150px;"><strong>Adjunta la memòria</strong></label>
<input class="cf_fileinput cf_inputbox required" title="Camp d´introducció obligatòria" size="20" id="file_64" name="file_64" type="file" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Adjunta la memòria :: Envieu el vostre arxiu en format .doc</div>
</div>
<div class="cfclear"> </div>
</div>

Any idea about what´s going wrong?

Thanks very much in advanced!
GreyHead 16 Jan, 2011
Hi nuriaparramacias,

You need an entry in the "Field names/allowed Extensions/sizes(KB)" box - see the ToolTip for the syntax. It will be something like file_64:doc|pdf{100-0}.

Bob
nuriaparramacias 16 Jan, 2011
Thanks a lot!

It works right now, at least when uploading files. Now I´m worried about mailing. I´m sure I´ve done something wrong because it doesn´t work. I´ll ask this matter in another post.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger