In the sourceForm method's call to mimedetect_mime() is passing the file path in as a string, but mimedetect_mime() expects to get that path as part of a file object.

The result of sending in a string is the message "ERROR: cannot open `' (No such file or directory)" under the file info on the source form.

#1 feeds-mimedetect-954080-1.patch824 bytesmlsamuelson
Members fund testing for the Drupal project. Drupal Association Learn more


mlsamuelson’s picture

Status: Active » Needs review
824 bytes

I've attached a patch that sends the $file path value as it would be structured in a file object (i.e. $file->filepath).

alex_b’s picture

Status: Needs review » Reviewed & tested by the community

uh-oh ... will commit shortly.

alex_b’s picture

Version: 6.x-1.0-beta9 » 6.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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