Customize Journal Attachment functional to restrict the user to upload maximum file size of 2 MB
How can we retrieve/know the File Size of the Journal Attachment before uploading it to the server"?As there is no file size retriction by PeopleSoft so we need to customize it to restrict it to 2 MB PER JOURNAL.
I am aware of AddAttachment function where we can mention the file size but that is for validation. We want to know the file size before uploading the file to server.
I can also use CreateJavaObject class to use the Java.IO.FILE to calculate the size but it thrwing below error
Objects of class java.io.File cannot be serialized. (2,694)