Forums
This topic is locked
Pure Upload - Not Saving Image Size
Posted 30 May 2007 01:43:37
1
has voted
30 May 2007 01:43:37 Adam Leerox posted:
I have Pure upload working for a page I have and I have set it up so it will save the image height and weight into the database, for some reason this is not working, the file will upload and other details will save in the database but not the image width and height, my code is as follows:<pre id=code><font face=courier size=2 id=code>
<DMXzone<img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>ureFileUpload runat="server" id="pfu" ThePath="images" Redirect="" StoreType="file" TimeOut="1200" SizeLimit="500" Extensions="GIF,JPG,JPEG,BMP,PNG" NameConflict="uniq" MaxHeight="250" MinHeight="" RequireUpload="true" MinWidth="" MaxWidth="250" SaveWidth="PicWidth" SaveHeight="PicHeight" FormName="createPartner" ProgressBar="fileCopyProgress.htm" ProgressWidth="300" ProgressHeight="100" TheVersion="2.0.2" />
</font id=code></pre id=code>
Then:
<pre id=code><font face=courier size=2 id=code>
<MM<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>nsert
runat="server"
CommandText='<%# "INSERT INTO businessPartners (BTitle, BUrl, BImgPath, BStatus, PicWidth, PicHeight) VALUES (?, ?, ?, ?, ?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_aConn" %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_aConn" %>'
Expression='<%# Request.Form("MM_insert" = "createPartner" %>'
CreateDataSet="false"
SuccessURL='<%# "result_partner.asp" %>'
Debug="true">
<Parameters>
<Parameter Name="@BTitle" Value='<%# IIf((Request.Form("BTitle" <> Nothing), Request.Form("BTitle", "" %>' Type="VarChar" />
<Parameter Name="@BUrl" Value='<%# IIf((Request.Form("BUrl" <> Nothing), Request.Form("BUrl", "" %>' Type="VarChar" />
<Parameter Name="@BImgPath" Value='<%# IIf((pfu.getFileName("BImgPath" <> Nothing), pfu.getFileName("BImgPath", "" %>' Type="VarChar" />
<Parameter Name="@BStatus" Value='<%# IIf((Request.Form("BStatus" <> Nothing), Request.Form("BStatus", "" %>' Type="VarChar" />
<Parameter Name="@PicWidth" Value='<%# IIf((Request.Form("PicWidth" <> Nothing), Request.Form("PicWidth", "" %>' Type="VarChar" />
<Parameter Name="@PicHeight" Value='<%# IIf((Request.Form("PicHeight" <> Nothing), Request.Form("PicHeight", "" %>' Type="VarChar" />
</Parameters>
</MM<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>nsert>
<MM<img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>ageBind runat="server" PostBackBind="true" />
</font id=code></pre id=code>
Within the form I have the following:
<input type="hidden" name="PicWidth">
<input type="hidden" name="PicHeight">