Query to submit the file to the database uses double quotes around string data fields. To correct this for compatability with PostgreSQL all that needs ot be done is to change:

db_query('INSERT into {files} (fid, nid, filename, filepath, filemime, filesize)
VALUES (%d, %d, "%s","%s","%s",%d)'

To:

db_query("INSERT into {files} (fid, nid, filename, filepath, filemime, filesize)
VALUES (%d, %d, '%s','%s','%s',%d)"

Cheers,
Rob.

CommentFileSizeAuthor
#1 imagefield_83864.patch979 bytesdrewish

Comments

drewish’s picture

Status: Active » Needs review
StatusFileSize
new979 bytes
drewish’s picture

Status: Needs review » Closed (duplicate)