Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File doesnt work #396

Open
bnd170 opened this issue May 29, 2015 · 1 comment
Open

File doesnt work #396

bnd170 opened this issue May 29, 2015 · 1 comment

Comments

@bnd170
Copy link

bnd170 commented May 29, 2015

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
Copy link
Author

bnd170 commented May 29, 2015

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant