PeopleSoft File Attachments : Converting User Filenames before uploading in the record or server
- Get link
- X
- Other Apps
Converting User Filenames
If a user attaches a file through the browser dialog box generated by the AddAttachment function, the filename may be converted before that filename is returned to the AddAttachment call for storage.
For example, the file My Resume.doc is returned through the AddAttachment parameter as My_Resume.doc, with the space changed to an underscore.
No comparable mapping occurs for user filenames with the PutAttachment function, which requires the user filename as an input parameter rather than an output parameter that is returned to the user.
Instead, before storing the ATTACHUSERFILE value, you should invoke code similar to this:
&ATTACHUSERFILE = Substitute(&ATTACHUSERFILE, " ", "_"); &ATTACHUSERFILE = Substitute(&ATTACHUSERFILE, ";", "_"); &ATTACHUSERFILE = Substitute(&ATTACHUSERFILE, "+", "_");
- Get link
- X
- Other Apps
Comments
Want to buy or sell a business? Don't go it alone! Find a Business Broker near me for expert help and make your deal a resounding success.
ReplyDelete