Forums

ASP

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>
&lt;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" /&gt;
</font id=code></pre id=code>

Then:

<pre id=code><font face=courier size=2 id=code>
&lt;MM<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>nsert
runat="server"
CommandText='&lt;%# "INSERT INTO businessPartners (BTitle, BUrl, BImgPath, BStatus, PicWidth, PicHeight) VALUES (?, ?, ?, ?, ?, ?)" %&gt;'
ConnectionString='&lt;%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_aConn" %&gt;'
DatabaseType='&lt;%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_aConn" %&gt;'
Expression='&lt;%# Request.Form("MM_insert" = "createPartner" %&gt;'
CreateDataSet="false"
SuccessURL='&lt;%# "result_partner.asp" %&gt;'
Debug="true"&gt;
&lt;Parameters&gt;
&lt;Parameter Name="@BTitle" Value='&lt;%# IIf((Request.Form("BTitle" &lt;&gt; Nothing), Request.Form("BTitle", "" %&gt;' Type="VarChar" /&gt;
&lt;Parameter Name="@BUrl" Value='&lt;%# IIf((Request.Form("BUrl" &lt;&gt; Nothing), Request.Form("BUrl", "" %&gt;' Type="VarChar" /&gt;
&lt;Parameter Name="@BImgPath" Value='&lt;%# IIf((pfu.getFileName("BImgPath" &lt;&gt; Nothing), pfu.getFileName("BImgPath", "" %&gt;' Type="VarChar" /&gt;
&lt;Parameter Name="@BStatus" Value='&lt;%# IIf((Request.Form("BStatus" &lt;&gt; Nothing), Request.Form("BStatus", "" %&gt;' Type="VarChar" /&gt;
&lt;Parameter Name="@PicWidth" Value='&lt;%# IIf((Request.Form("PicWidth" &lt;&gt; Nothing), Request.Form("PicWidth", "" %&gt;' Type="VarChar" /&gt;
&lt;Parameter Name="@PicHeight" Value='&lt;%# IIf((Request.Form("PicHeight" &lt;&gt; Nothing), Request.Form("PicHeight", "" %&gt;' Type="VarChar" /&gt;
&lt;/Parameters&gt;
&lt;/MM<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>nsert&gt;
&lt;MM<img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>ageBind runat="server" PostBackBind="true" /&gt;
</font id=code></pre id=code>

Within the form I have the following:

&lt;input type="hidden" name="PicWidth"&gt;
&lt;input type="hidden" name="PicHeight"&gt;


Reply to this topic