Log in | Register | Lost password

Bottom
Get size of uploaded image?
  • Posted: 04.12.2008, 03:31
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hey all-

    Curious- is there a way to find the dimensions of an uploaded image? I've tried writing plugins that use php's getimagesize() but as pagesetter provides a url to the photo that must be processed (ie: index.php?module=article&type=file&func=get&tid=3&fid=photo&pid=76) by pagesetter rather than a simple url to the file location on the server it will not work...

    Quote

    Uploaded files are accessed via PostNuke's standard index.php file and thereby through Pagesetter. This has two implications 1) files are always subject to the same access control as the publication it is stored with, and 2) data must be streamed through PHP, generating a performance overhead comparing to linking directly to the files. It is the developers opinion that complete access control is more important than performance in this case.


    So is there any way to create a path to the location of the photo upload?

    Thanks!
    -J

Template courtesy of Designs By Darren.