Thanks @pgr I checked that and is OK. The extra slash isn’t the major issue here. For some reason it’s not constructing the URL correctly. It should be upload/fieldID_fieldname and for some reason it’s constructing: upload/userid_filetype
I think it’s the $filelocation definition but just can’t seem to figure it out. Little above my PHP skills I’m not understanding completely how $focus works. $fieldName gives me the field type (photo)of the field, when I think it should be outputing the field name. If I try subbing in $focus ->$fieldName again, I’m thinking I should get the field name but get the contents of the field (the filename).
Other than image fields, I’ve pretty much got the PDF printing working for custom post types. I’d love to make a video for everyone on this one, seems pretty common, but I’m stuck on the image field not working.
It totally works with an image in SuiteCRM. 7