I've recently been trying to setup a progress bar on a few file fields within a form that users will submit video through.
I have upload progress module installed and Drupal reports that it's fine , I had to patch the file module in order to get to this stage but now when I hit upload it's coming up with this error where the progress bar should be.
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /file/progress/374170472
now , I'm not entirely sure what could be throwing this error , every search I've done has come up with something to do with drupal for firebug , but I'm not using that module.
does anyone have an idea on what could possibly be causing the issue or some way to further diagnose the problem?
Comments
Any more info?
I'm having the same issue trying to upload any file type with a manged file upload form element. The error comes out as one line and I've tried to pretty it up. There seems to be an extra array appended after the upload progress info??
Has anyone run into this or fixed it?
Thanks
Bug in file.module ?
file_ajax_progress() currently does not return anything but the documentation says it should return an ajax command array. Instead of returning a value, it echos out some json. Later on in ajax_deliver() in ajax.inc, the command array is appended to this. This sequence creates a garbage json response with 2 arrays butted together:
{ progress bar stuff here}[ { commands here } ]
Am I crazy or should file_ajax_progress be returning a command array? menu_execute_active_handler() in menu.inc seems to expect it and saves the return value to $page_callback_result which is then used by ajax_deliver().
Should I try to fix this or am I understanding things way wrong?
Has anybody got a manged file upload working with progress bar with core 7.8?
Issue filed
I've filed this as an issue at http://drupal.org/node/1316252