it took this out of some other code and didnt copy all of the cffile, i had
that part in a variable just wasnt putting it all.
on the jpeg
yeah it would and I didnt think about that and i took that part out of another
section that converts it to a jpg if its not a jpg, so that was just a sloppy
put together by me
<cfset jpgCheck = right(theImage, 3)>
<cfif jpgCheck is not "jpg">
<cfimage action="convert" source="#theImage#" destination="#theImage#"
overwrite="yes">
</cfif>
>Dave l wrote:
>> fileType = right("#file.serverfile#", 3)
>now, wouldn't that leave you with xxxxx.peg if i uploaded a xxxxx.jpeg ?
>and do you really need the " and # there?
>and file has been deprecated for a couple of cf versions now, i believe
>- use cffile instead.
>
>Azadi Saryev
>Sabai-dee.com
>www.sabai-dee.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294578
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4