jonathan vanasco wrote: > > Apache::Upload seems to be working fine -- as long as I upload something > > If i upload nothing, i get all sorts of errors. i assumed I would get > them, as this problem came about while I was trying to work in routines > for handling data of the wrong type. I just can't figure out how one > catches the errors. > > so, how does one validate the integrity of an upload (in terms of > something actually being uploaded). trying to access any aspect of the > upload object triggers an error, and the docs dont show me any sort of > other way to access the error.
I was doing something similar several months ago where I needed to validate the incoming data. This may not be what you need but it worked in my case, and it's likely there is a simpler way to do it. Here's a link to a question I posted on the apreq-dev list regarding this - hope it helps. http://marc.theaimsgroup.com/?l=apreq-dev&m=109150075712271&w=2