Got a system where users upload files, mostly word documents and PDF's. If they upload a file with an invalid filename, CF throws an error. It's easy enough to catch, and display a friendly error message, but is there any way of detecting the problem *before* attempting the CFFile, and somehow either renaming the file first so it doesn't fail, or warning the user before they attempt to upload it? I guess I could use Javascript to check the form.filefield.value for invalid filenames and warn them there, but a CF solution would be better.
The main problem is the filenames are things like 'my C.V..doc' - CF doesn't like the double dots. -- 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]
