In my applications, I tend to upload the original into one directory and keep it there, then resize and drop the resized image into the directory where it will be normally accessed. While this would obviously not work in a case where the volume of unsized uploads would cause disk storage problems, I like it because it means that the original is at hand for me if there is some problem along the way... and, if some client calls and says, do you have that picture we uploaded, but we need the original, we lost it, I can produce it for them.
Experience fine tunes paranoia, James On Nov 5, 2007 7:25 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > > You might > > as well just upload it, then use CFImage to resize and OVERWRITE the > > uploaded file. > > I agree... that seems to be the best route. Nice to have the image tools, > however. > > Rick > > > -----Original Message----- > > From: Ben Nadel [mailto:[EMAIL PROTECTED] > > Sent: Monday, November 05, 2007 7:42 AM > > To: CF-Talk > > Subject: RE: CF Image question... > > > > CFImage cannot read take a filefield like CFFile can (for upload)... > > However, CFImage source attribute CAN accept a binary blob type object. > > Theoretically, you can get this directly out of the FORM data without > > saving it to the system. If you forgo the CFFile upload portion, you > > MIGHT be able to grab the binary file value directly out out of the > > Request data. > > > > Now, I don't know how to do this :) I don't know how you parse a > > multipart form data object (which is what the request is at that point I > > think). However, I don't think all this overhead is worth it. You might > > as well just upload it, then use CFImage to resize and OVERWRITE the > > uploaded file. > > > > ...................... > > Ben Nadel > > Certified Advanced ColdFusion MX7 Developer > > www.bennadel.com > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292658 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

