Thank you very much for the quick response Mark. I did have a look at that link, but did not get an answer to what i was looking for. Let me elaborate. Let me put it in simple terms (without getting into my need complexity :)), What i need is I have an HTML form to upload files. I can hand it over to sling to do the post after file is selected, but before that i want to check if the file has virus, or is within the permitted file size & type (this i can do with javascript, but if there is a user who uses curl to upload, need to trap that)
After i trap and validate the file is fine for upload, i need to hand it over to sling to finish the POST operation I hope this gives an idea of the scenario. I am not a JAVA person, so trying to see if i can accomplish this with something like POST.esp :). Regards Jithesh On Thursday, August 25, 2011 at 11:22 AM, Mark Herman wrote: > Not sure about "hand it back to normal POST operation" but this[1] may get > you what you need. > > [1] http://dev.day.com/content/ddc/blog/2008/07/fileuploadsinsling.html > > > -----Original Message----- > From: Jithesh A P [mailto:[email protected]] > Sent: Thursday, August 25, 2011 1:59 PM > To: [email protected] (mailto:[email protected]) > Subject: processing POST help - direction needed > > Hi Folks, > > I am stuck at how to handle post of a file. For example i want to upload a > file, do some processing like check for virus (during POST), then hand it > back to normal POST operation. > > Is it possible to achieve this using POST.esp and how? > > Your input will be greatly appreciated. > > Regards > Jithesh
