File Upload mit Cake und jQuery

Und noch mal CakePHP. David Golding zeigt sich ein Ajax File Upload mit Cake und jQuery realisieren lässt.

The reason why I’ve used jQuery here is that it is the only Ajax framework I’ve been able to find that will serialize the form elements and actually send to the server as a post variable the <input type="file"/> element. Usually, in PHP, the file is accessible in the $_FILES variable, but thanks to Cake, I can get the content moved over much more easily by making use of $this->data and the File functions, which you have seen me do.

Possibly related posts (automatically generated)