genemu / GenemuFormBundle

Extra Form : Captcha GD, Tinymce, Recaptcha, JQueryDate, JQueryAutocomplete, JQuerySlider, JQueryFile, JQueryImage
587 stars 265 forks source link

File doesnt work #396

Open bnd170 opened 9 years ago

bnd170 commented 9 years ago

I installed the bundle according to your documentation, installing each package separately.

I try to use the genemu_jqueryfile and not working. Not even get the uploadify.swf.

http://i.gyazo.com/75565b979541a3a21b5e7494d3a2a076.png

I have everything installed and configured:

    image:         enabled: true         selected: 'large'         filters: ['rotate', 'bw' 'negative' 'sepia' 'crop']         thumbnails:             small [100, 100]             medium: [200, 200]             large: [500, 500]             extra: [1024, 768]     file:         swf: /uploadify/uploadify.swf         enabled: true         cancel_img '/bundles/genemuform/images/cancel.png'         folder:% directorio.draw%

When the view is loaded and the form is displayed completely, open the developer console and see this:

Failed to load resource: the server responded with a status of 500 (Internal Server Error) http: //acme.lo/app_dev.php/genemu_upload

And i check the swfobject embeded in the code and ...

http://i.gyazo.com/251fa50d8adceeb346148249d9e0d699.png

uploadPath is on the swfPath.

I cant understund it

bnd170 commented 9 years ago

Update, i found the error. In yout jquery_layout.html.twig

You got:

        'swf':       asset(configs.swf),
        'cancelImg': asset(configs.cancelImg),
        'uploader':  path(configs.script),
        'queueID':   id ~ '_queue'

And the correct options are:

        'uploader':       asset(configs.swf),
        'cancelImg': asset(configs.cancelImg),
        'script':  path(configs.script),
        'queueID':   id ~ '_queue'