genemu/GenemuFormBundle — Issue #22: 'error' always returned when uploading a file
Author: Schyzophrenic
Created: 2012-01-03 12:58:59+00:00
State: open

Hello,

I am sorry if it is just a misconfiguration from my side, but I have tried again and again to understand what could be wrong.

I have setup an autoupload file component, but once I have selected the files, I have a straight up "error" alert. Firebug does not show any HTTP request sent but the one for the image cancel.png...

I have set up the File component as described in the doc:
#routing.yml
genemu_image:
resource: "@GenemuFormBundle/Controller/ImageController.php"
type: annotation

genemu_upload:
resource: "@GenemuFormBundle/Controller/UploadController.php"
type: annotation

#config.yml
genemu_form:
image:
enabled: true
filters: ['rotate', 'bw', 'negative', 'sepia', 'crop']
file:
enabled: true
cancel_img: '/images/cancel.png'
folder: '/uploads'
uploader: '/uploadify/uploadify.allglyphs.swf'

And the view contains (simplified version):
{% block stylesheets %}
{% spaceless %}
{{ parent() }}

{{ form_stylesheet(form) }}
{% endspaceless %}
{% endblock %}

{% block javascripts %}
{{ parent() }}

{{ form_javascript(form) }}
{% endblock %}

{{ form_errors(form) }}

{{ form_rest(form) }}

Any help / clarifications would be greatly appreciated