Catch large uploads error

Hi

i need help, i know the limit of uploads are 10Mb and i know that i can change it in the administration documents, but a i need to catch the error if any user try to upload a larger file (more than 10 Mb), and redirect to a customized error page.

There is a way to catch this error?

Thanks

Subject: Catch large uploads error!!!

  1. Pls read the forum etiquette (Do not use all capital letters, excessive question marks (?) or exclamation points (!) in your subject or content.)2) set ur server document to allow upload limit to 50mb

  2. use code below to catch the error (it only work if the attach file is below 50MB, otherwise u need to increase the upload limit)

=============================================

dim s as new notessession

dim context_doc as notesdocument

dim obj 'as NotesEmbeddedObject

set context_doc=s.DocumentContext

if context_doc.HasEmbedded then

forall obj in context_doc.EmbeddedObjects

	if obj.filesize > 10000000 then '10MB

		obj.remove

		print "- ur Error page Path -"

		set s=nothing

		exit sub

	end if

next

end if

set s=nothing

hope it will help

Subject: Catch large uploads error!!!

Check out this link, too: http://www.codestore.net/store.nsf/unid/EPSD-5NMLXD?OpenDocument