Uploads Module Info

"Michael Cortez" <[email protected]> Wed, 19 Nov 2003 00:08:50 -0800
Newsgroups gmane.comp.cms.xaraya.knowledge-base
Message-ID <[email protected]>
When using the DD "Upload" property type (not to be confused with "File
Upload") the following may be helpful to you:

http://lists.xaraya.com/pipermail/xaraya_users/2003-September/001553.html


The key pieces being:
======================
<xar:set name="$displayInfo">
  xarModAPIFunc('uploads','user','get',array('ulid'=>$display))
</xar:set>
======================

AND

======================
<img src="#$displayInfo['link']#" />
======================

Other fields available include:

'ulid'   => Upload ID of the File
'ulhash' => Hashed/Obfuscated FileName
'ulapp'  => Approved/Not-Approved
'ulext'  => Original Filename's Extension
'ulfile' => Original Filename
'ulmod'  => Module that uploaded the file
'ulmodid' => ID of item in module that uploaded the file
'uluid'  => Username of person that uploaded the file
'link'   => Download Link of File
'ulsize'  => Actual numberical value (bytes)
'size'    => User friendly display value
'ulmime'  => Mimetype of file
'ulwidth' => Original file Width
'ulheight'=> Original file Height
'uldownloadcount' => download count of file (only available if you hook
hitcount to uploads)

Using these fields, custom publication types, and categories (as well as
comments, ratings, hitcount) it should be easy to provide a full fledged
download publication type (ie PostNuke download module) and/or a photo
gallery.

--
Mike C.