Closed (fixed)
Project:
FileField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2012 at 12:47 UTC
Updated:
27 Apr 2013 at 18:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchSeems like it's because Filedepot is saving blank rows into the "files" database table (at least based on #1809878: Field 'fid' doesn't have a default value). FileField Meta expects $file->data to be an array, but if it's an empty string, this error occurs. FileField Meta *does* accomodate for the value being entirely empty:
But if it's set to an empty string, all kinds of things go wrong.
I've changed this line to be:
Which makes FileField Meta work in this situation, but the broader problem caused by FileDepot should be fixed separately.
Comment #2
quicksketch