I am attempting to build a tool for non-technical users to easily create quick link pagelets with icons that point to URLs or Content References. One of the issues I am running into is the image upload PeopleCode commands seem to limit the file type to jpegs. Jpeg do not allow transparent backgrounds which makes it hard to take seals and similar icons and just super impose them over a background. When I looked at the file attachment functions I did not see a way to output a web server URL for image to be included on a page it only looked like there were only ftp server calls. Any thoughts?
The most obvious solution would be to do a "file upload" instead of an image upload, and then use the "file" instead of image location. I don't know how the rest of the customization is organized, but just my 2 cents for a dummy solution. I suppose you should check file type to be an image in that case.
Use the File Attachment API (AddAttachment) to upload files to a database table, and then use an iScript to serve them. This blog post has an example iScript for reading attachments from tables: http://jjmpsj.blogspot.com/2009/01/exporting-attachments-part-2.html.
Chapter 2 of my PeopleTools Tips and Techniques book (http://www.amazon.com/PeopleSoft-PeopleTools-Techniques-Oracle-Press/dp/0071664939) has a complete example including a component for uploading files and an iScript for serving them. I call the component "Web Assets."
Oddly enough I'd already looked at your blog posting several times and it hadn't sunk in what you were doing. I'd also checked out your book. After another hour or so playing with things I got it working.