Just a simple change to alter the error message presented to the user. Watchdog is getting the correct message "file upload failed" but the user is presented with "image upload failed" even though the widget is set to file upload.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ultimateboy’s picture

FileSize
740 bytes

Helps if I patch the right thing...

drewish’s picture

Status: Needs review » Needs work

need to fix the watchdog message above it as well, it's got 'imagefield' in there too.

ultimateboy’s picture

Status: Needs work » Needs review
FileSize
838 bytes

Ha.. dont know how I missed that.

drewish’s picture

Title: File upload failed says "Image upload failed" » Imagefield mentioned in watchdog message.
FileSize
1.76 KB

actually looks like you rolled this against an old version of the module... the message has changed but the watchdog message still has imagefield...

dopry’s picture

Status: Needs review » Fixed

committed to HEAD, tnx.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.