Did you notice the `[error] => 1` bit in the array? This means that
the file is too large; it exceeds the `upload_max_filesize` directive
in php.ini. Update your php.ini and you should be fine.

hth
grigri

On Nov 13, 2:57 pm, Josey <[EMAIL PROTECTED]> wrote:
> After fighting with this for a few days now I thought I should post
> this for your help.
>
> I am using the upload code described at this 
> site:http://www.jamesfairhurst.co.uk/posts/view/uploading_files_and_images...
>
> I've used this several times now for images without a hitch but on my
> current project I need the ability to upload mp3s as well.
>
> I thought it would only be a matter of change what mime types the
> uploader was passed but after adding mp3s to the variable that checks
> which types are passed still nothing.
>
> $permitted = array('image/gif','image/jpeg','image/pjpeg','image/
> png','audio/mpeg','audio/mpeg3','audio/x-mpeg-3');
>
> I printed the data that is passed to the form when I upload the mp3
> and here it is:
>
> Array
> (
>     [type] => Array
>         (
>             [name] => 03. Frank Sinatra Jr. - Feeling Good.mp3
>             [type] =>
>             [tmp_name] =>
>             [error] => 1
>             [size] => 0
>         )
>
> )
>
> Note that if I upload an image it proceeds on correctly, uploads the
> file and saves its location to the DB.
>
> Any help would thrill me and thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to