<[EMAIL PROTECTED]> wrote:

> I'm new to midgard as well, but I would think something like
> 
> $file=mgd_get_attachment($attachment_id);
> echo($file->location);
> 
> can't say that I've tried it though.

Thanks for your answer. I did try that and it simply doesn't show
anything. Some print_r($file) didn't show up a location attribute
either. I know manual claims so, but there isn't.
I did have a look at midgard php sources and the location field also
only seems to include the filename but not the whole path. I just guess
this from the presence of some "char* path" and concatenation of
path"/"location in the source.
I'd patch the sources to include the whole path in the attachment object
if I was able to. My C knowledge obviously isn't good enough as I did
not succeed with this plan - I don't even know where to start - I did
not understand attachment.c...
I hope anyone else does have an idea.
Thanks in advance, 

Olli

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to