I'm trying to attach Uploadify 2.1.4 to Symfony2 but have no luck. When I select a file to upload it is selected, then an Uploadify window appears, closes without errors, but AJAX request doesn't send. All the necessary files are included, the action is accessible via URL. By the way, I did the same thing using Zend Framework and everything worked well...
Here is my code for Uploadify:
$('#upload-file').uploadify(
{
uploader: '/bundles/myfile/flash/uploadify.swf',
script: '/upload-file',
cancelImg: '/bundles/myfile/images/cancel.png',
folder: '/uploads',
auto: true,
buttonImg: '/bundles/myfile/images/upload.png',
width: 48,
height: 48,
wmode: 'transparent',
fileDesc: 'Text File (*.txt)',
fileExt: '*.txt',
sizeLimit: 8000000,
multi: true,
simUploadLimit: 2
});
Here is my route in routing.yml for file upload:
upload_file:
pattern: /upload-file
defaults: { _controller: MyFileBundle:Default:uploadFile }