If the user doesn't upload a pic the page after the submit crashes with 'string index out of range'
The form element is
<input type="file" size="35" name="modifiedsmallpic" value="#ItemImage#">
Why can't I trap this like
<cfif NOT IsDefined(modifiedSmallPic)> Error with Small Pic </cfif>
This gives the same error.
Ideally if there is nothing in the field I want to miss out the code which trys to upload the pic (leave th existing pic it as it is) in this instance as this is modify. However I need to trap it when the user adds a new item (with pic) to make sure the pic is uploaded.
Regards - Paul
-- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by
activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*To unsubscribe, e-mail: [EMAIL PROTECTED]
