I have a form with a file upload and I have the following error when I click on the Upload button: "form elements must not have name or id of submit".

I have the solved my problem if I upgrade to jquery.form.js 3.63 which is the currently the last version.

CommentFileSizeAuthor
#1 update_jquery_form_3_32-1995790-1.patch97.79 KBemorency

Comments

emorency’s picture

StatusFileSize
new97.79 KB

Here is my patch.

joshuautley’s picture

Will this work for D6 ?

pjbarry21’s picture

FYI, I just applied this patch to a Drupal 7.22 site that just developed issues where video files couldn't be uploaded (we have hundreds of uploads already on the site and, to my knowledge, nothing has changed except some module updates weeks ago that had appeared to go smoothly). It solved the issue for our sites (both test and live environments had the same problems).

We were getting this error (in Chrome -- FF showed no error, just the endless spinning) when trying to upload a video file:

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /file/ajax/field_video/und/0/form-ieZh6bE6iuCpM6JpogFMI97ZblXftTcJO9-he7-7KMk
Status Text: n/a
Response Text:
ReadyState: undefined

We had jQuery Update installed, but not enabled. I enabled it and we stopped getting the error, but the file still never uploaded (endless spinning in FF and Chrome). Post patch, it's uploading again.

Thanks so much for the patch! Will update if I notice any issues elsewhere in the site.

asvsot’s picture

I've just applied jquery.form.js version 3.35 patch - https://drupal.org/node/1675794#comment-7507131
Also works fine for me.

kenorb’s picture

Issue summary: View changes
Status: Active » Needs review
markhalliwell’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#2266303: Update jquery.form.js