Pure ASP Upload 3 Support Product Page

This topic was archived

Error in multiple file upload issue

Reported 17 Jul 2007 16:04:16
1
has this problem
17 Jul 2007 16:04:16 Bjørn-Tore Nikolaisen posted:
Hi -

have followed the tutorial and trying the multiple file uploader on a simple page.
But on submit I get a javascript error and no progress bare is visible.
Files are uploaded ok - but there is an error in the tool somehow.

Can you look and try my page here: www.meglerhuset.net/boliger_images2_flash.asp
Error: element is null or not an object.

Please advice.

Bjørn-T

Replies

Replied 17 Jul 2007 16:12:56
17 Jul 2007 16:12:56 Bjørn-Tore Nikolaisen replied:
Hi -

I found and solved the error due to another post - www.dmxzone.com/forum/topic.asp?topic_id=38723&NewsId=12064
thanx! .

One more question;
In the tutorial for multiple file upload there is no code example for getting the URL parameter passed into the BioID field.
How is that done?

Bjørn-T
Replied 17 Jul 2007 21:07:10
17 Jul 2007 21:07:10 Bjørn-Tore Nikolaisen replied:
Actually I have also tried to insert static info in the hidden field for testing,.
Is there any magic to get the hidden field content saved in the db. It is of cource binded to the correct field in the insert record behaviour, but nothing except the uploaded image name is saved into the db. Strange.
ANy idea?

Bjørn-T
Replied 18 Jul 2007 11:38:48
18 Jul 2007 11:38:48 Georgi Kralev replied:
Hi Bjørn,

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>Is there any magic to get the hidden field content saved in the db. It is of cource binded to the correct field in the insert record behaviour, but nothing except the uploaded image name is saved into the db.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Unfortunately, Flash upload does not recognize the additional fields of the form.

You can store different information in your database by:
* Save it into the Session.
For example:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
&lt;%
Session("imgswidth"= "400"
Session("imgsheigh"= "400"
%&gt;
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>&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_cnnTestDB_STRING
MM_editCmd.CommandText = "INSERT INTO dbo.Images (imgName, BrandImageW, BrandImageH) VALUES (?, ?, ?)"
MM_editCmd.Prepared = true
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 50, UploadFormRequest("Filedata") ' adVarWChar
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 1, 50, Session("imgswidth") ' adVarWChar
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param3", 202, 1, 50, Session("imgsheigh") ' adVarWChar
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
End If
End If
%&gt;<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

OR

* The other option is to use the normal form upload with file fields

Regards,

Georgi Kralev

----------------------------------
Support - www.DMXzone.com

Reply to this topic