![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 162 Pomógł: 2 Dołączył: 18.01.2008 Ostrzeżenie: (0%) ![]() ![]() |
W symfony 1.2 nie ma czegoś takiego jak "getFilePath"
No to jak mam pobrać ścieżkę do pliku dla: Kod $thumbnail->loadFile(); cały kod: Kod foreach ($this->getRequest()->getFiles('file') as $fileName) {
// Create the thumbnail $thumbnail = new sfThumbnail(150, 150); $thumbnail->loadFile($this->getRequest()->getFilePath('file')); $thumbnail->save(sfConfig::get('sf_upload_dir').'/images/'.$fileName, 'image/jpg'); // Move the uploaded file to the 'uploads' directory $this->getRequest()->moveFile('file', sfConfig::get('sf_upload_dir').'/'.$fileName); } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 14:06 |