I find the problem : It seems the errors came from $this->file = $HTTP_POST_FILES["filepath"]; I have to write : $this->file = $_FILES["filepath"];
Y. Le Mercredi 14 Juin 2006 16:19, Jacolin Yves a écrit : > Hi, > I want to allow user to upload shapefile to the postgisDB. So I wrote a > form and change the cartoclient.tpl file to add > "enctype="multipart/form-data"" in the <form> tag in order to use something > like > $this->file = $HTTP_POST_FILES["filepath"]; > "filepath" is the name of my input form. > > This is possible to use this with cartoweb ? CW3 send back an error of this > kind : > class: CartocommonException > message: Error [8, Undefined variable: > HTTP_POST_FILES, > /var/www/html/cartoweb3/projects/script/plugins/layersManager/client/Client >LayersManager.php, 28] > > Thanks for your answer. > > Y. -- Yves Jacolin http://yjacolin.gloobe.org ---- Stagaire Conservatoire Régional des Espaces Naturels de la région Centre http://cahiersnaturalistes.free.fr/cpnrc/ ---- - Qu'est-ce que cela peut faire que je lutte pour la mauvaise cause puisque je suis de bonne foi? - Et qu'est-ce que ça peut faire que je sois de mauvaise foi puisque c'est pour la bonne cause. (Jacques Prévert) -- Yves Jacolin http://yjacolin.gloobe.org ---- Stagaire Conservatoire Régional des Espaces Naturels de la région Centre http://cahiersnaturalistes.free.fr/cpnrc/ ---- - Qu'est-ce que cela peut faire que je lutte pour la mauvaise cause puisque je suis de bonne foi? - Et qu'est-ce que ça peut faire que je sois de mauvaise foi puisque c'est pour la bonne cause. (Jacques Prévert) _______________________________________________ Cartoweb-users mailing list [email protected] http://lists.maptools.org/mailman/listinfo/cartoweb-users
