File upload and make unique

2009-01-09 Thread Huff, Jerome P.
We all know that cf8 appends a 1 to the end of the file name to make a unique new name, which works fine, until the file name gets to 255 characters. Is there a way to change this behavior? I have a web application that users check out/in documents and there are some documents that are heavily

Re: File upload and make unique

2009-01-09 Thread Ben Nadel
Are you saying that ColdFusion is throwing errors during the file upload? Or is something else going on? -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager New York ColdFusion User Group http://www.bennadel.com Need ColdFusion Help?

RE: File upload and make unique

2009-01-09 Thread Huff, Jerome P.
upload and make unique Are you saying that ColdFusion is throwing errors during the file upload? Or is something else going on? -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager New York ColdFusion User Group http://www.bennadel.com Need ColdFusion Help

RE: File upload and make unique

2009-01-09 Thread Adrian Lynch
Rename it before giving it back to them. Not idea, but then you can't control the users OS. Adrian -Original Message- From: Huff, Jerome P. [mailto:jerome.h...@ngc.com] Sent: 09 January 2009 16:05 To: cf-talk Subject: RE: File upload and make unique No, Coldfusion is ok

Re: File upload and make unique

2009-01-09 Thread Ben Nadel
How are you serving it up to the user? If you use CFHeader / CFContent, you can set the filename: cfheader name=content-disposition value=attachment; filename=your_file_name.ext / -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager New York ColdFusion User

Re: File upload and make unique

2009-01-09 Thread Dave Watts
We all know that cf8 appends a 1 to the end of the file name to make a unique new name, which works fine, until the file name gets to 255 characters. Is there a way to change this behavior? I have a web application that users check out/in documents and there are some documents that are

RE: File upload and make unique

2009-01-09 Thread Robert Harrison
Assuming you are uploading from a form and the name of the file field is file, the routine below will do it. You will need to rename the paths as necessary. This routine will: 1) Rename the file with incremental numbers (1, 2, 3, etc) 2) Ensure the file name uses only standard characters (so it

RE: File upload and make unique

2009-01-09 Thread Huff, Jerome P.
This is what I was looking for thanks! I will study the code and integrate into our website. Thanks again! -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Friday, January 09, 2009 12:19 PM To: cf-talk Subject: RE: File upload and make unique

RE: File upload and make unique

2009-01-09 Thread Huff, Jerome P.
- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Friday, January 09, 2009 12:19 PM To: cf-talk Subject: RE: File upload and make unique Assuming you are uploading from a form and the name of the file field is file, the routine below will do it. You will need to rename the paths