 						<br>read #Application.webDirectory#/temp/#d.zid#/#f.new_filename#
 						<cfimage action="read" name="thisImg" source="#Application.webDirectory#/temp/#d.zid#/#f.new_filename#">
 						<cfimage action="info" structname="imagetemp" source="#thisImg#">
-
 						<cfset x=min(180/imagetemp.width, 180/imagetemp.height)>
 						<cfset newwidth = x*imagetemp.width>
 		    			<cfset newheight = x*imagetemp.height>

<br><a href="uploadMedia.cfm?action=unzip">unzip</a>
<br><a href="uploadMedia.cfm?action=rename">rename</a>
<br><a href="uploadMedia.cfm?action=mkprvw">mkprvw</a>

<hr>
<cfif action is "mkprvw">
	<cfoutput>



		<!---- this needs to run iteratively ---->
		<cfquery name="d" datasource="uam_god">
			select * from cf_temp_zipload where status='renamed' and rownum=1

					<cfset fName=REReplace(fName,"[^A-Za-z0-9_$]","_","all")>
					<cfset fName=replace(fName,'__','_','all')>
					<cfset nfileName=fName & '.' & fext>
					<cfset vfn=utilities.isValidMediaUpload(nfileName)>
					<cfif len(vfn) gt 0>
						<cfquery name="fail" datasource="uam_god">
							update cf_temp_zipload set status='FATAL ERROR: #nfileName# is invalid - #vfn#' where zid=#d.zid#
						</cfquery>
						<cfbreak>
					</cfif>
					<cffile action = "rename"
						source = "#Application.webDirectory#/temp/#d.zid#/#filename#"
						destination = "#Application.webDirectory#/temp/#d.zid#/#nfileName#">
