>>2. I need to rename the Inv:Photo so that it is saved without the path prepended --> 'uploads/filename'. When can I safely rename this?
you have a couple options here.
a) In WebHandler, ProcessLink method, before parent call, set
self.site.UploadsPath = 'c:\whatever'
This will make this the default location for all incoming file uploads.
b) In the Form, SaveFile::fieldname routine, before the line
p_web.SaveFile('MAI:MailBoxPicture',MAI:MailBoxPicture)
you can adjust the contents of MAI:MailBoxPicture
At this point MAI:MailBoxPicture holds the full file name, including path, of where the incoming file will be saved.
>> 1. Where do I put my code to copy the uploaded file into my non-NTWS folder? I had been doing this in the Validate embed. I'm guessing that this should not be done in the webhandler.
correct. In the form, in the SaveFile::FieldName routine, after the call to .SaveFile, the incoming file is now stored on disk (using the name passed as the second parater to .SendFile) and you can then do anything you like with it.
In the example I make a thumbnail from the incoming image there.
cheers
Bruce