Pure ASP Upload 3 Support Product Page

This topic was archived

Multiple uploads and insert records into DB

Reported 23 Aug 2006 18:59:13
1
has this problem
23 Aug 2006 18:59:13 Auz Clement posted:
I have had this extension almost since the day it was released and still have not gotten this to work. There should be a better tutorial for saving the file info to a DB on multiple uploads with the flash uploader.

The tutorial (www.dmxzone.com/showDetail.asp?TypeId=2&NewsId=12067&LinkFile=multiple_file_upload_with.htm) provided is confusing and gets no support. This is obviously a new feature for PAU so why is it not covered in more detail?

Anyway, I am having trouble with this... Can anybody please describe how they got theirs to work in detail? My files upload, but are not recorded in the DB at all...

please help...

John Auzheal Clement
(www.digitm.com)

[dwmx|fwmx|flmx|ASP|VBScript|XML|MySQL]

Replies

Replied 28 Aug 2006 10:34:26
28 Aug 2006 10:34:26 Patrick Woldberg replied:
It can indeed be a bit confusing, the hidden fields that are created in the tutorial are there because the default Insert Record behavior from Dreamweaver only supports formfields. The Filedata field contains the filename, other variables can be passed using hiddenfields. There are some limitations, you can only use values passed using the url (name of hiddenfield have to match the name of the parameter in the url) and you can use the fileproperties from the upload behavior, just make a hiddenfield and use the databindings as value in the hiddenfield.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------
Replied 29 Aug 2006 05:42:16
29 Aug 2006 05:42:16 Auz Clement replied:
ok so I got this working... I had to manually edit these lines because when the filename was saved to the database it did not include the upload folder??


if pau.Done then
SetUploadFormRequest "Filedata","mysite/picUploads" & Session("clientID"& "/" & pau("Filedata".FileName
end if

So that worked fine, but than I added the smart image processor and when I upload files the flash uploader says error 500.

Any idea how to add the image processor?

Thanks for your help!

John Auzheal Clement
(www.digitm.com)

[dwmx|fwmx|flmx|ASP|VBScript|XML|MySQL]
Replied 30 Aug 2006 12:23:53
30 Aug 2006 12:23:53 Patrick Woldberg replied:
Error 500 is an asp error and flash only receives the error code and not the description. You can find the description in the iis log file.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------
Replied 30 Aug 2006 19:22:42
30 Aug 2006 19:22:42 Auz Clement replied:
yeah i checked that out (C:\WINDOWS\system32\LogFiles\HTTPERR\httperr32.log) after reading some other post, but I am not sure if this is the line corresponding with my error.

80 HTTP/0.0 Invalid - 400 - Verb

When I produce the error my error log doesn't seem to change. Am I checking the correct one?

This asp error happens after inserting the Smart Image Processor



John Auzheal Clement
(www.digitm.com)

[dwmx|fwmx|flmx|ASP|VBScript|XML|MySQL]
Replied 30 Aug 2006 19:51:51
30 Aug 2006 19:51:51 Auz Clement replied:
Any idea why adding the extension would create this error? I can't find anything useful in the error logs...

John Auzheal Clement
(www.digitm.com)

[dwmx|fwmx|flmx|ASP|VBScript|XML|MySQL]
Replied 31 Aug 2006 02:27:33
31 Aug 2006 02:27:33 chris desborough replied:
Yep, confuses me as well. What Connection are u supposed to use for the Insert record behaviour and what DB is it supposed to connect to? Is the upload.mdb that's supplied?
Replied 31 Aug 2006 05:13:24
31 Aug 2006 05:13:24 Mazhar Khan replied:
try to check the event viewer logs
Replied 31 Aug 2006 16:13:55
31 Aug 2006 16:13:55 Patrick Woldberg replied:
With flash it is difficult to debug, replace the flash control with a simple filefield and see if the error then still exists.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------
Replied 31 Aug 2006 20:25:38
31 Aug 2006 20:25:38 Mazhar Khan replied:
Ok all of the sudden my file also stopped working.
Throws error 500 in IE and CIMG0236.JPG (IO Error) in Firefox.
Just a one upload before everything worked out great and i was so happy.
Replied 07 Sep 2006 23:22:37
07 Sep 2006 23:22:37 Auz Clement replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
With flash it is difficult to debug, replace the flash control with a simple filefield and see if the error then still exists.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------

<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

this is really frustrating... I replaced the flash field with a regular file field and added a submit button. The upload works fine with no errors wehn I do this. When I change back to the Flash component I get the 500 error...

This would be so awesome if it worked...

Thanks for the help Patrick. Any other ideas?

John Auzheal Clement
(www.digitm.com)

[dwmx|fwmx|flmx|ASP|VBScript|XML|MySQL]
Replied 08 Sep 2006 03:25:02
08 Sep 2006 03:25:02 Mazhar Khan replied:
Hi,
Just apply the extension. If you have assigned any values to hidden Fields in order to insert values, it might not work. So for now first take out any assigned values. Just simple upload SB with filename update. Let know what happens. Then Post only the values you want to assign.
Replied 20 Sep 2006 06:21:46
20 Sep 2006 06:21:46 Auz Clement replied:
I'm sorry, but I did not understand your reply. Are you saying reapply the Image Processor behavior? Please explain a little more.

I am still having issues with this. It owrks fine without the image processor, but as soon as I apply that behavior I get the 500 error in the flash upload component...

John Auzheal Clement
(www.digitm.com)

[dwmx|fwmx|flmx|ASP|VBScript|XML|MySQL]
Replied 20 Sep 2006 06:40:44
20 Sep 2006 06:40:44 Auz Clement replied:
Might any of these apply?

support.microsoft.com/kb/311766/

the error message in the flash component is not helping at all...

John Auzheal Clement
(www.digitm.com)

[dwmx|fwmx|flmx|ASP|VBScript|XML|MySQL]
Replied 27 Sep 2006 13:05:04
27 Sep 2006 13:05:04 nathan green replied:
I am having the same issue.

Please can somone (Patrick etc) get back to us on this.

I am getting the following error...

Upload Error
(5) Object does not exist within the PureUpload.Fields collection.

This is trying to ulpoad muktiple images with a SIP resize and save data to DB for file name, size etc from filedata and various other hidden fields databound as instructed in the tutorial.

Using the upload button would appear to upload multiple images but not do the resize or DB insert.

Ussing the Insert SB form button 'insert' generates the detailed error.

Help would be appreciated!!

Thanks

Nathan

Edited by - on 27 Sep 2006 13:06:37
Replied 06 Nov 2006 23:34:55
06 Nov 2006 23:34:55 Auz Clement replied:
Ok now I have purchased Smart Image Processor 2 and applied it to the multiple upload page....

In Internet explorer it uploads the first pic in the que perfectly along with creating the thumbnail, but then when attempting the second pic the browser always freezes and shuts off with an error...

In firefox I can upload multiple images and the thumbs are created perfectly. No browser error, but I get the 500 error for each pic and the flash component says they were not uploaded when they were...

This is killing me... any ideas? Has naybody gotten this multiple upload thing to work with the image processor?

John Auzheal Clement
(www.digitm.com)

[dwmx|fwmx|flmx|ASP|VBScript|XML|MySQL]

Edited by - auz1111 on 06 Nov 2006 23:35:33

Edited by - auz1111 on 07 Nov 2006 01:40:08
Replied 07 Nov 2006 01:55:15
07 Nov 2006 01:55:15 Auz Clement replied:
I hate to post all this, but maybe this can help:

---------------------------------------------------------------------------------------------------

&lt;%@LANGUAGE="VBSCRIPT"%&gt;
&lt;!--#include file="../../../Connections/digitmSites.asp" --&gt;
&lt;!--#include virtual="/ScriptLibrary/incSIP2Class.asp" --&gt;
&lt;!--#include file="../../../Connections/DigitmDB.asp" --&gt;
&lt;!--#include virtual="/ScriptLibrary/incPU3Class.asp" --&gt;
&lt;!--#include virtual="/ScriptLibrary/incPU3Utils.asp" --&gt;
&lt;!--#include virtual="/ScriptLibrary/incResizeAddOn.asp" --&gt;
&lt;%
'*** Pure ASP File Upload 3.0.4
' Process form upload1
Dim pau, DMX_uploadAction, UploadRequest, UploadQueryString, pau_thePath, pau_nameConflict, pau_saveWidth, pau_saveHeight
Set pau = new PureUpload
pau.ScriptLibrary = "/ScriptLibrary"
pau.ConflictHandling = "over"
pau.StoreType = "path"
pau.ProgressTemplate = "mac_look.htm"
pau.ProgressWidth = 400
pau.ProgressHeight = 100
pau.UploadFolder = """picUploads/digitmPicFolder"" & Session(""clientID"""
pau.Required = true
pau.AllowedExtensions = "GIF,JPG,JPEG,BMP,PNG" ' "images"
pau.MinWidth = 20
pau.MinHeight = 20
pau.ProcessUpload
pau.SaveAll
if pau.Done then
SetUploadFormRequest "Filedata","www.digitm.com/56446/46464/46664/44666/digitmPicFolder" & Session("clientID" & "/" & pau("Filedata".FileName
end if
%&gt;
&lt;%
Dim MM_editAction
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME")
If (UploadQueryString &lt;&gt; "" Then
MM_editAction = MM_editAction & "?" & Server.HTMLEncode(UploadQueryString)
End If

' boolean to abort record edit
Dim MM_abortEdit
MM_abortEdit = false
%&gt;
&lt;%
' IIf implementation
Function MM_IIf(condition, ifTrue, ifFalse)
If condition = "" Then
MM_IIf = ifFalse
Else
MM_IIf = ifTrue
End If
End Function
%&gt;
&lt;%
If (CStr(UploadFormRequest("MM_insert") = "FlashUpload" Then
If (Not MM_abortEdit) Then
' execute the insert
Dim MM_editCmd

Set MM_editCmd = Server.CreateObject ("ADODB.Command"
MM_editCmd.ActiveConnection = MM_digitmSites_STRING
MM_editCmd.CommandText = "INSERT INTO digitm.tblphotos (pic_url, siteID, categoryID) VALUES (?, ?, ?)"
MM_editCmd.Prepared = true
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 201, 1, -1, UploadFormRequest("Filedata") ' adLongVarChar
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 5, 1, -1, MM_IIF(UploadFormRequest("siteID", UploadFormRequest("siteID", null)) ' adDouble
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param3", 5, 1, -1, MM_IIF(UploadFormRequest("categoryID", UploadFormRequest("categoryID", null)) ' adDouble
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
End If
End If
%&gt;
&lt;%
' Smart Image Processor 2.0.0
Dim sip1
Set sip1 = New ImageProcessor
sip1.ScriptFolder = "/ScriptLibrary"
sip1.Component = "Auto"
sip1.Source = "upload"
sip1.GetFiles
While sip1.HasFiles
sip1.LoadFromSource
sip1.Resize 150, 150, true
sip1.Overwrite = false
sip1.Mask = "##path####name##_thumb.jpg"
sip1.SaveJPEG 80
sip1.MoveNext
Wend
Set sip1 = Nothing
%&gt;
&lt;%
' Smart Image Processor 2.0.0
Dim sip1_thumbs
Set sip1_thumbs = New ImageProcessor
sip1_thumbs.ScriptFolder = "/ScriptLibrary"
sip1_thumbs.Component = "Auto"
sip1_thumbs.Source = "upload"
sip1_thumbs.GetFiles
While sip1_thumbs.HasFiles
sip1_thumbs.LoadFromSource
sip1_thumbs.Resize 100, 100, true
sip1_thumbs.Overwrite = false
sip1_thumbs.Mask = "##path####name##_thumb.jpg"
sip1_thumbs.SaveJPEG 70
sip1_thumbs.MoveNext
Wend
Set sip1_thumbs = Nothing
%&gt;
&lt;%
Dim rsClient__MMColParam
rsClient__MMColParam = "1"
If (Session("clientID" &lt;&gt; "" Then
rsClient__MMColParam = Session("clientID"
End If
%&gt;
&lt;%
Dim rsClient
Dim rsClient_cmd
Dim rsClient_numRows

Set rsClient_cmd = Server.CreateObject ("ADODB.Command"
rsClient_cmd.ActiveConnection = MM_DigitmDB_STRING
rsClient_cmd.CommandText = "SELECT * FROM digitm.tblclientinfo WHERE clientID = " & Session("clientID"
rsClient_cmd.Prepared = true
rsClient_cmd.Parameters.Append rsClient_cmd.CreateParameter("param1", 5, 1, -1, rsClient__MMColParam) ' adDouble

Set rsClient = rsClient_cmd.Execute
rsClient_numRows = 0
%&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Digital Thoughts Media:. - Work Request Form&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;SCRIPT LANGUAGE="Javascript" SRC="ColorPicker2.js"&gt;&lt;/SCRIPT&gt;
&lt;SCRIPT LANGUAGE="Javascript" SRC="AnchorPosition.js"&gt;&lt;/SCRIPT&gt;
&lt;SCRIPT LANGUAGE="Javascript" SRC="PopupWindow.js"&gt;&lt;/SCRIPT&gt;
&lt;script language="JavaScript"&gt;
&lt;!--

var cp = new ColorPicker('window'); // Popup window
var cp2 = new ColorPicker(); // DIV style

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i&lt;a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i&lt;a.length; i++)
if (a[i].indexOf("#"!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?")&gt;0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i&lt;d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i&lt;d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i&lt;(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//--&gt;
&lt;/script&gt;

&lt;link rel="stylesheet" href="../../digitm_style_sheet.css" type="text/css"&gt;
&lt;script language="javascript" src="../../../ScriptLibrary/incPureUpload.js"&gt;&lt;/script&gt;
&lt;script src="../../../Scripts/AC_RunActiveContent.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;&lt;%=pau.generateScriptCode()%&gt;&lt;/script&gt;
&lt;script src="/ScriptLibrary/incPU3.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;&lt;%=pau.generateScriptCode()%&gt;&lt;/script&gt;
&lt;script src="../../../ScriptLibrary/incPU3.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body bgcolor="#CCCCCC" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../../images/layout/layout_2003_subpage_r2_c8_f2.gif','../../images/layout/layout_2003_subpage_r2_c9_f2.gif','../../images/layout/layout_2003_subpage_r2_c10_f2.gif','../../images/layout/layout_2003_subpage_r2_c11_f2.gif','../../images/layout/layout_2003_subpage_r2_c15_f2.gif')"&gt;
&lt;style&gt;
BODY {SCROLLBAR-FACE-COLOR: #000066; SCROLLBAR-HIGHLIGHT-COLOR: #000066; SCROLLBAR-SHADOW-COLOR: #999999; SCROLLBAR-3DLIGHT-COLOR: #FFFFFF; SCROLLBAR-ARROW-COLOR: #FFFFFF; SCROLLBAR-TRACK-COLOR: #0099FF; SCROLLBAR-DARKSHADOW-COLOR: #666666; }
&lt;/style&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td height="677" valign="top"&gt;&lt;table border="0" cellpadding="0" cellspacing="0" width="700" align="center"&gt;
&lt;!-- fwtable fwsrc="layout_2003_subpage.png" fwbase="layout_2003_subpage.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" --&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="83" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="16" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="79" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="11" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="75" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="74" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="40" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="59" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="75" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="78" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="18" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="35" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="14" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="11" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="14" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="8" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="10" height="1" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="1" height="1" border="0"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="3"&gt;&lt;a href="../../index.asp"&gt;&lt;img name="layout_2003_subpage_r1_c1" src="../../images/layout/layout_2003_subpage_r1_c1.gif" width="178" height="67" border="0"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td colspan="9"&gt;&lt;img name="layout_2003_subpage_r1_c4" src="../../images/layout/layout_2003_subpage_r1_c4.gif" width="465" height="67" border="0"&gt;&lt;/td&gt;
&lt;td colspan="5"&gt;&lt;img name="layout_2003_subpage_r1_c13" src="../../images/layout/layout_2003_subpage_r1_c13.gif" width="57" height="67" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="1" height="67" border="0"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="6"&gt;&lt;img name="layout_2003_subpage_r2_c1" src="../../images/layout/layout_2003_subpage_r2_c1.gif" width="338" height="32" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img name="layout_2003_subpage_r2_c7" src="../../images/layout/layout_2003_subpage_r2_c7.gif" width="40" height="32" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="../../about/about.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('layout_2003_subpage_r2_c8','','../../images/layout/layout_2003_subpage_r2_c8_f2.gif',1)" &gt;&lt;img name="layout_2003_subpage_r2_c8" src="../../images/layout/layout_2003_subpage_r2_c8.gif" width="59" height="32" border="0"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="../../services/services.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('layout_2003_subpage_r2_c9','','../../images/layout/layout_2003_subpage_r2_c9_f2.gif',1)" &gt;&lt;img name="layout_2003_subpage_r2_c9" src="../../images/layout/layout_2003_subpage_r2_c9.gif" width="75" height="32" border="0"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="../../projects/projects.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('layout_2003_subpage_r2_c10','','../../images/layout/layout_2003_subpage_r2_c10_f2.gif',1)" &gt;&lt;img name="layout_2003_subpage_r2_c10" src="../../images/layout/layout_2003_subpage_r2_c10.gif" width="78" height="32" border="0"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td colspan="3"&gt;&lt;a href="../../contact/contact.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('layout_2003_subpage_r2_c11','','../../images/layout/layout_2003_subpage_r2_c11_f2.gif',1)" &gt;&lt;img name="layout_2003_subpage_r2_c11" src="../../images/layout/layout_2003_subpage_r2_c11.gif" width="67" height="32" border="0"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img name="layout_2003_subpage_r2_c14" src="../../images/layout/layout_2003_subpage_r2_c14.gif" width="11" height="32" border="0"&gt;&lt;/td&gt;
&lt;td colspan="2"&gt;&lt;a href="../../faq/faq.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('layout_2003_subpage_r2_c15','','../../images/layout/layout_2003_subpage_r2_c15_f2.gif',1)" &gt;&lt;img name="layout_2003_subpage_r2_c15" src="../../images/layout/layout_2003_subpage_r2_c15.gif" width="22" height="32" border="0"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;img name="layout_2003_subpage_r2_c17" src="../../images/layout/layout_2003_subpage_r2_c17.gif" width="10" height="32" border="0"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="1" height="32" border="0"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="17" rowspan="2" background="../../images/layout/middle_panel.gif"&gt;
&lt;table width="97%" border="0" cellspacing="0" cellpadding="0" align="center"&gt;
&lt;tr&gt;
&lt;td colspan="2" height="31"&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td width="37%"&gt;&lt;img src="../../images/work_request_label.jpg" width="240" height="30"&gt;&lt;/td&gt;
&lt;td width="63%"&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div align="right"&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif" size="2"&gt;&lt;a href="javascript:history.go(-1);"&gt;&lt;img src="../../images/back.gif" width="16" height="16" border="0" hspace="5"&gt;&lt;/a&gt;[ &lt;a href="picAdmin.asp"&gt;pic admin&lt;/a&gt; | &lt;a href="../client_control.asp?clientID=&lt;%=(rsClient.Fields.Item("clientID".Value)%&gt;"&gt;control
panel&lt;/a&gt; | &lt;a href="../view_billings.asp?clientID=&lt;%=(rsClient.Fields.Item("clientID".Value)%&gt;"&gt;view
billings&lt;/a&gt; | &lt;a href="../work_request_form.asp?clientID=&lt;%=(rsClient.Fields.Item("clientID".Value)%&gt;"&gt;work
request form&lt;/a&gt;]&lt;/font&gt;&lt;/div&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr bgcolor="#99CCFF"&gt;
&lt;td colspan="2"&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif" size="2"&gt;&lt;b&gt;&lt;%=(rsClient.Fields.Item("lname".Value)%&gt;, &lt;%=(rsClient.Fields.Item("fname".Value)%&gt;: &lt;%=(session("companyName")%&gt;&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="3%" rowspan="2"&gt;&nbsp;&lt;/td&gt;
&lt;td width="97%"&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="97%" bgcolor="#CCCCCC"&gt;&lt;strong&gt;&lt;font size="2" face="Verdana, Arial, Helvetica, sans-serif"&gt;Admin&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&lt;SCRIPT LANGUAGE="JavaScript"&gt;cp.writeDiv()&lt;/SCRIPT&gt;
&lt;form ACTION="&lt;%=MM_editAction%&gt;" name="FlashUpload" method="POST"&gt;
&lt;script type="text/javascript"&gt;
AC_FL_RunContent( 'codebase','download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','250','height','150','id','upload1','align','middle','src','dmxPureUpload','quality','best','flashvars','&lt;%=pau.FlashVars()%&gt;','scale','noscale','wmode','transparent','pluginspage','www.macromedia.com/go/getflashplayer','movie','dmxPureUpload' ); //end AC code
&lt;/script&gt;
&lt;noscript&gt;&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="250" height="150" id="upload1" align="middle"&gt;
&lt;param name="FlashVars" value="&lt;%=pau.FlashVars()%&gt;" /&gt;
&lt;param name="movie" value="dmxPureUpload.swf" /&gt;
&lt;param name="quality" value="best" /&gt;
&lt;param name="scale" value="noscale" /&gt;
&lt;param name="wmode" value="transparent" /&gt;
&lt;embed src="dmxPureUpload.swf" id="upload1" quality="best" flashvars="&lt;%=pau.FlashVars()%&gt;" scale="noscale" wmode="transparent" type="application/x-shockwave-flash" width="250" height="150" pluginspage="www.macromedia.com/go/getflashplayer" /&gt;
&lt;/object&gt;&lt;/noscript&gt;
&lt;input name="Filedata" type="hidden" value="www.digitm.com/html_2003/client/admin/picUploads/digitmPicFolder&lt;%=Session("clientID"%&gt;/&lt;%= pau("Filedata".FileName %&gt;" /&gt;
&lt;input name="siteID" type="hidden" id="siteID" value="&lt;%= request.querystring("siteID" %&gt;"&gt;
&lt;input name="categoryID" type="hidden" id="categoryID" value="&lt;%= request.querystring("categoryID" %&gt;"&gt;
&lt;input type="hidden" name="MM_insert" value="FlashUpload"&gt;
&lt;label&gt;
&lt;input type="submit" name="Submit" value="Submit"&gt;
&lt;/label&gt;
&lt;/form&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif" size="2"&gt;&lt;a href="picAdminMain.asp?categoryID=&lt;%= request.querystring("categoryID" %&gt;"&gt;&lt;img src="../../images/back.gif" alt="back" width="16" height="16" hspace="2" border="0" align="absmiddle"&gt;back&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="1" height="22" border="0"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="../../images/layout/spacer.gif" width="1" height="176" border="0"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td rowspan="2"&gt;&lt;img name="layout_2003_subpage_r7_c1" src="../../images/layout/layout_2003_subpage_r7_c1.gif" width="83" height="59" border="0"&gt;&lt;/td&gt;
&lt;td colspan="10" height="2"&gt;&lt;img name="layout_2003_subpage_r7_c2" src="../../images/layout/layout_2003_subpage_r7_c2.gif" width="525" height="52" border="0"&gt;&lt;/td&gt;
&lt;td rowspan="2" colspan="6"&gt;&lt;img name="layout_2003_subpage_r7_c12" src="../../images/layout/layout_2003_subpage_r7_c12.gif" width="92" height="59" border="0"&gt;&lt;/td&gt;
&lt;td height="2"&gt;&lt;img src="../../images/layout/spacer.gif" width="1" height="52" border="0"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="10" height="2"&gt;&lt;img name="layout_2003_subpage_r8_c2" src="../../images/layout/layout_2003_subpage_r8_c2.gif" width="525" height="7" border="0"&gt;&lt;/td&gt;
&lt;td height="2"&gt;&lt;img src="../../images/layout/spacer.gif" width="1" height="7" border="0"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;%
rsClient.Close()
%&gt;

John Auzheal Clement
(www.digitm.com)

[dwmx|fwmx|flmx|ASP|VBScript|XML|MySQL]
Replied 11 Nov 2006 01:11:54
11 Nov 2006 01:11:54 Auz Clement replied:
Ok I seem to have gotten this to work perfectly in Firefox although the page still does not redirect...

When I use IE 7 the first pic in the list is uploaded, but then IE 7 completely shuts down due to a bug...

So weird...

Is this a bug in PU3? IE 7 just blows up after the first pic...

John Auzheal Clement
(www.digitm.com)

[dwmx|fwmx|flmx|ASP|VBScript|XML|MySQL]

Reply to this topic