Ajax itself does *not* allow file uploads.
Consider:
* jQuery form plugin <http://www.malsup.com/jquery/form/>: Transmits
files via hidden iFrame
* swfUpload <http://swfupload.mammon.se/>: Uploads file via flash
I yet have to find flash solution that provides me with an API for file
upload but doesn't enforce it's GUI on me - if anybody knows of one
please share : ).
HTH, Felix
--------------------------
My Blog: http://www.thinkingphp.org
My Business: http://www.fg-webdesign.de
Repsah wrote:
> I have an Ajax form with a "file" input field but apparently, when I
> submit the form, the file field is considered as a text-field.
>
> the definition of the form should be correct (and the source code
> generated is too)
>
> $ajax->Form('Product', null, array('action' => 'add/'.$supplierId,
> 'enctype' => 'multipart/form-data', 'update' => 'products'));
>
> I have looked in the group for some similar problem but I haven't
> found anything related, can someone point me to the right direction?
>
> Thank you
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---