thrace-project / media-bundle

The `ThraceMediaBundle` handles file, video, audio and image upload plus some image manipulations.
MIT License
11 stars 10 forks source link

image (single and multi) does not work #6

Open tulanowski opened 10 years ago

tulanowski commented 10 years ago

After last refactoring I get this error:

Some of the configs "["minWidth","minHeight","extensions","identifier"]" are missing

but event if I add 'indentifier' I get:

Undefined index: filter in .../vendor/thrace-project/media-bundle/Thrace/MediaBundle/Form/Type/ImageUploadType.php line 169

BTW: why do change storage (from session to container parameters) for configs?

rafaeladel commented 10 years ago

You'll have to enter filter config parameter in configs inside your form type. Although I don't know what is identifier nor filter. Documentation is pretty useless in this point.

jeremygachet commented 9 years ago

The filter is the one setted for your liip_imagine. But I cannot find what I need to do with the identifier parameter. I tried to pass almost everthing but i'm not able to make it work.

henrypenny commented 9 years ago

Try adding something like this to your parameters.yml file:

parameters:

....

    plupload_options:
        max_upload_size: 4000000
        extensions: 'jpeg,jpg'
        minWidth: 10
        minHeight: 10

Then use plupload_options as the identifier parameter.