This content has been marked as final. Show 3 replies
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.