Forums

This topic is locked

Will not save dimensions as described

Posted 13 Aug 2003 15:41:35
1
has voted
13 Aug 2003 15:41:35 gunni grahn posted:
I have now spend a whole day trying to make file dimensions become saved by using the turorial in Pure ASPUpload.

First making all other fields, the 2 hidden fields to which i choose to save from withing pure asp.

when finishing off by reentering UPDATE procedure - i does show that the 2 hidden fields (name) save into the correct text field in my access database - but no data goes there!?!?!?!

Yet another bug? i dont know - but a whole day lost on a "simple - straightforward" procedure. What goes wrong here?

I am on a mac - osx 10.2.6 and latest version off pure asp and dreamw mx

pureasp part:
_______________________________________________
'*** Pure ASP File Upload 2.1.2
Dim GP_uploadAction,UploadQueryString
PureUploadSetup
If (CStr(Request.QueryString("GP_upload") <> "" Then
Dim pau_thePath,pau_Extensions,pau_Form,pau_Redirect,pau_storeType,pau_sizeLimit,pau_nameConflict,pau_requireUpload,pau_minWidth,pau_minHeight,pau_maxWidth,pau_maxHeight,pau_saveWidth,pau_saveHeight,pau_timeout,pau_progressBar,pau_progressWidth,pau_progressHeight
pau_thePath = """../../../log/produktinfopix"""
pau_Extensions = "GIF,JPG,JPEG"
pau_Form = "retfoto"
pau_Redirect = ""
pau_storeType = "file"
pau_sizeLimit = ""
pau_nameConflict = "over"
pau_requireUpload = "true"
pau_minWidth = ""
pau_minHeight = ""
pau_maxWidth = ""
pau_maxHeight = ""
pau_saveWidth = "brd"
pau_saveHeight = "hjd"
pau_timeout = "600"
pau_progressBar = "fileCopyProgress.htm"
pau_progressWidth = "300"
pau_progressHeight = "100"

Dim RequestBin, UploadRequest
CheckPureUploadVersion 2.12
ProcessUpload pau_thePath,pau_Extensions,pau_Redirect,pau_storeType,pau_sizeLimit,pau_nameConflict,pau_requireUpload,pau_minWidth,pau_minHeight,pau_maxWidth,pau_maxHeight,pau_saveWidth,pau_saveHeight,pau_timeout
end if
%>
_______________________________________________
form part:
<form ACTION="<%=MM_editAction%>" METHOD="POST" enctype="multipart/form-data" name="retfoto" id="retfoto" onSubmit="checkFileUpload(this,'GIF,JPG,JPEG',true,'','','','','','brd','hjd');showProgressWindow('fileCopyProgress.htm',300,100);return document.MM_returnValue">
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td colspan="2" nowrap><div align="center"><span class="Brdtxt">|</span> <a href="javascript:history.back()" class="BrdtxtLink">Forrige
side</a> <span class="Brdtxt">|</span> <a href="admin-specialsider-fordeler.asp" class="BrdtxtLink">Indgang</a> <span class="Brdtxt">|</span> <a href="admin-prodIntro-opret.asp" target="_self" class="BrdtxtLink">Opret</a> <span class="Brdtxt">|<a href="admin-ProdIntro-list.asp" target="_self" class="BrdtxtLink"> Rediger</a> <span class="Brdtxt">|</span> <a href="admin-prodIntro-opret.asp" target="_self" class="BrdtxtLink"></a><br>
<br>
</span></div></td>
</tr>
<tr>
<td colspan="2" nowrap bgcolor="#339999" class="HeaderWhite"><div align="center">Her
kan Du indsÆTTE et nyt billede</div></td>
</tr>
<tr valign="top">
<td nowrap bgcolor="ffdf96" class="BrdtxtFed"><div align="right">Titel:</div></td>
<td bgcolor="ffffcc" class="HeaderBlack"><%=(rsProdIntroPages.Fields.Item("ProdIntroHeadline".Value)%></td>
</tr>
<tr valign="top">
<td nowrap bgcolor="ffdf96" class="BrdtxtFed"><div align="right">Nuværende:<br>
Foto<font color="ffdf96">:</font> </div></td>
<td bgcolor="ffffcc"><div align="left"><img src="../../../log/produktinfopix/<%=(rsProdIntroPages.Fields.Item("ProdIntroPic".Value)%>"><br>
<br>
<span class="FotoTxt">HØjde:<%=(rsProdIntroPages.Fields.Item("ProdIntroPicHeight".Value)%> Bredde:<%=(rsProdIntroPages.Fields.Item("ProdIntroPicWidth".Value)%> i 72 DPI.</span></div></td>
</tr>
<tr valign="top">
<td nowrap bgcolor="ffdf96" class="BrdtxtFed"><div align="right">Nyt
Foto:</div></td>
<td bgcolor="ffffcc"><input name="file" type="file" onChange="checkOneFileUpload(this,'GIF,JPG,JPEG',true,'','','','','','brd','hjd')"></td>
</tr>
<tr>
<td bgcolor="ffdf96"><p>
<input name="ProdIntroPic02" type="hidden" id="ProdIntroPic02" value="tom.gif">
<input name="ProdIntroPic03" type="hidden" id="ProdIntroPic03" value="tom.gif">
<input name="ProdIntroPic04" type="hidden" id="ProdIntroPic04" value="tom.gif">
<input name="hjd" type="hidden" id="hjd">
<input name="brd" type="hidden" id="brd">
</p>
</td>
<td bgcolor="#006600"><div align="center">
<input name="opret" type="submit" class="HeaderBlack" id="opret" value="Opret">
</div></td>
</tr>
</table>

<input type="hidden" name="MM_update" value="retfoto">
<input type="hidden" name="MM_recordId" value="<%= rsProdIntroPages.Fields.Item("ProdIntroID".Value %>">
</form>

Reply to this topic