Thursday, September 29, 2011

uploading large file fails

Hi people. I have a problem trying to upload a file to my webserver,
here's what i'm doing:

my view:

<form action="archivos_sistemas/subirArchivo" method="post"
enctype="multipart/form-data">
<input type="file" name="file" />
<input type="submit" name="Submit" />
</form>

my controller:

function beforeFilter() {
parent::beforeFilter();
$this->FileUpload->fileModel = null; //Upload by default.
$this->FileUpload->allowedTypes = array('image/jpeg','text/plain');
$this->FileUpload->uploadDir = '../archivos_subidos/';
}

i have this component called "file_upload". When i select a file that
is not that big, it uploads ok, but when i am trying to upload a file
that is at least 58 MB it fails uploading and the file won't be the
same at server side. Can anyone help me?. Thanks a lot.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: