<cffile
action="upload"
destination = "c:\ffmpeg"
nameconflict="overwrite"
filefield="VideoFile" />
<cftry> <!--- using a large file and a short timeout value ---> <cfset
argString = '/c c:\ffmpeg\ffmpeg.exe -i "c:\ffmpeg\#cffile.SERVERFILE#" -g 300
-y -s 300x200 -f flv -ar 44100 "c:\ffmpeg\#replace(cffile.SERVERFILE, ".",
"")#.flv" 2>&1' > <cfexecute name="c:\windows\system32\cmd.exe"
arguments="#argString#" outputFile="c:\ffmpeg\results14.log" timeout="120" />
<cfcatch> <cfdump var="#cfcatch#"> </cfcatch></cftry>
<cfset VideoFileName = "#replace(cffile.SERVERFILE, ".", "")#.flv" />
<cfreturn VideoFileName />
<body>
<cfquery name="Insert_program" datasource="#Green#">
INSERT INTO dbo.video (video)
VALUES ('#VideoFileName#')
</cfquery>
Ok so uploads then takes that file and then converts it. Im then trying to
insert the name into the db. Well kinda. Suggestions on cleaning up the code?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318096
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4