Here's the exact JSON response:

{ "data": "\x3cdiv class=\"messages error\"\x3e\nAn unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (16 MB) that this server supports.\x3c/div\x3e\n" }

This error appears to generate from filefield.module on line 530.

The URL spouting out the error is /filefield/ahah/people/field_profile_picture/0

The files are much less than 16 MB.

PECL uploadprogress is enabled. Progress indicator is set to bar with progress meter. Tried throbber as well with no luck.

The Live HTTP headers Firefox plug-in shows that form_build_id is in fact gettting posted.

Comments

ice5nake’s picture

Category: bug » support
ice5nake’s picture

After some further investigation I noticed in firebug that the page was actually returning a "Failed to load source for" error message and a 302 Found response.

I have a development server with a very similar setup and it is not doing any of these things.

ice5nake’s picture

Title: Getting, "An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size" with tiny files » Getting, "Failed to load source for" when trying to remove or add a picture to a filefield of image type
quicksketch’s picture

A similar issue was posted around the same time as this one: #889836: Removal of file field image fails, but I can't reproduce it. Did you ever find out what the cause was?

sin’s picture

I have the same error. Server returns:

{ "data": "\x3cdiv class=\"messages error\"\x3e\nAn unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 МБ) that this server supports.\x3c/div\x3e\n" }

JQuery 1.4.3 throws in addition:

Uncaught Syntax error, unrecognized expression: }

So I cant delete ImageField + FileField attachments.

sin’s picture

The actual server response to delete button POST request is:

{ "status": true, "data": "\x3cdiv id=\"edit-field-gallery-0-ahah-wrapper\"\x3e\x3cdiv class=\"form-item\" id=\"edit-field-gallery-0-upload-wrapper\"\x3e\n \x3cdiv class=\"filefield-element clear-block\"\x3e\x3cdiv class=\"widget-edit\"\x3e\x3cinput type=\"hidden\" name=\"field_gallery[0][fid]\" id=\"edit-field-gallery-0-fid\" value=\"0\" /\x3e\n\x3cinput type=\"hidden\" name=\"field_gallery[0][list]\" id=\"edit-field-gallery-0-list\" value=\"1\" /\x3e\n\x3cdiv class=\"form-item\" id=\"edit-field-gallery-0-upload-wrapper\"\x3e\n \x3cdiv class=\"filefield-upload clear-block\"\x3e\x3cinput type=\"file\" name=\"files[field_gallery_0]\" accept=\"png,gif,jpg,jpeg\" class=\"form-file\" id=\"edit-field-gallery-0-upload\" size=\"22\" /\x3e\n\x3cinput type=\"submit\" name=\"op\" id=\"edit-field-gallery-0-filefield-upload\" value=\"Загрузить\" class=\"form-submit\" /\x3e\n\x3c/div\x3e\n \x3cdiv class=\"description\"\x3eMaximum Filesize: \x3cem\x3e2 МБ\x3c/em\x3e\x3cbr /\x3eAllowed Extensions: \x3cem\x3epng gif jpg jpeg\x3c/em\x3e\x3c/div\x3e\n\x3c/div\x3e\n\x3c/div\x3e\x3c/div\x3e\n\x3c/div\x3e\n\x3c/div\x3e\x3cscript type=\"text/javascript\"\x3ejQuery.extend(Drupal.settings.ahah, { \"edit-field-gallery-0-filefield-upload\": { \"url\": \"/filefield/ahah/page/field_gallery/0\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-gallery-0-ahah-wrapper\", \"selector\": \"#edit-field-gallery-0-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"op\": \"Загрузить\" } }, \"edit-field-gallery-0-filefield-remove\": { \"url\": \"/filefield/ahah/page/field_gallery/0\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-gallery-0-ahah-wrapper\", \"selector\": \"#edit-field-gallery-0-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_gallery_0_filefield_remove\": \"Удалить\" } }, \"edit-field-gallery-1-filefield-upload\": { \"url\": \"/filefield/ahah/page/field_gallery/1\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-gallery-1-ahah-wrapper\", \"selector\": \"#edit-field-gallery-1-filefield-upload\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"op\": \"Загрузить\" } }, \"edit-field-gallery-1-filefield-remove\": { \"url\": \"/filefield/ahah/page/field_gallery/1\", \"event\": \"mousedown\", \"keypress\": true, \"wrapper\": \"edit-field-gallery-1-ahah-wrapper\", \"selector\": \"#edit-field-gallery-1-filefield-remove\", \"effect\": \"fade\", \"method\": \"replace\", \"progress\": { \"type\": \"throbber\" }, \"button\": { \"field_gallery_1_filefield_remove\": \"Удалить\" } } });\x3c/script\x3e" }

Dret’s picture

Version: 6.x-3.7 » 6.x-3.9

I have same error in conjunction with "HTTP 0 error" made by file field while i'm trying to upload a new file.

I'm usign the 3.9 version + file field Path + image field (but problem appear only for attachment and not for images).

I'm using Opera Browser.

Summit’s picture

Subscribing, having same issue. I am not having issue, but somebody who fills the site has the issue.
greetings, Martijn

Bilalx’s picture

I had the same problem for years. Found a solution on another thread. Disable javascript and remove the image and it should work.

It also worked when uploading an image but it reloads the page, so be sure to save your node first.

quicksketch’s picture

Status: Active » Closed (cannot reproduce)

No response from original poster and lack of activity, I'm closing this issue.

anup.tilak’s picture

This happens because of jQuery Lib Version. With Drupal 6 we have jQuery 1.2 in misc. Please don't change that version with new one as ahaha.js is compatible with jQuery 1.2 not with new version of jQuery Lib. If you changed version with new one, on image remove it will through syntax error.

To over come above error and if you wish to have newer version of jQuery, user jQuery update module. This will give you updated jQuery Lib and will not create any conflict over ahaha.js or ajax call from drupal. Also don't include multiple jQuery Lib files in your site, this will create problem.