Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony 1.2] Upload pliku
verox
post
Post #1





Grupa: Zarejestrowani
Postów: 38
Pomógł: 0
Dołączył: 16.10.2007

Ostrzeżenie: (0%)
-----


Witam, nie moge sobie poradzic z uploadem pliku. Znalazlem w manualu jak to zrobic:

$fileName = $this->getRequest()->getFileName('file');
 
  $this->getRequest()->moveFile('file', sfConfig::get('sf_upload_dir').'/'.$fileName);
 
  $this->redirect('media/show?filename='.$fileName);  

Ale dotyczy to wersji 1.1 a dla 1.2 nie ma. Prosze o pomoc
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.12.2025 - 23:28