Download & Extend

Upload Error 530 with SQL error in the logs using Postgres

Project:album photos
Version:6.x-2.6
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:active

Issue Summary

Using Postgres as Drupal database, and trying to upload 1 file using SFWUploader, I was getting Upload Error 530. In the Drupal logs I coud see SQL errors about the "INSERT INTO files"statement. Here's the patch I used to make it work. I could see the dev branch has already rewritten that part of the code, so it's probably not an issue in DEV, but I post this here just in case there are other users with this same problem.

AttachmentSize
photos.module.patch755 bytes