Symfony and uploadify

Posted by Thomas on Stack Overflow See other posts from Stack Overflow or by Thomas
Published on 2010-11-21T14:24:23Z Indexed on 2011/01/03 11:54 UTC
Read the original article Hit count: 269

Filed under:
|
|

Hi!

I want to use uploadify with Symfony 1.4, but so far I couldn't.

Uploadify loads correctly, I choose my files, it says that the files were successfully uploaded, but the are nowhere.

(I'm doing this on localhost)

Is there anybody who met this problem before?

Thanks, Tom

    $file = $request->getParameter('file');
    $filename = sha1($file->getOriginalName()).$file->getExtension($file->getOriginalExtension());
    $file->save(sfConfig::get('sf_upload_dir').'/'.$filename);

© Stack Overflow or respective owner

Related posts about file-upload

Related posts about symfony