Forums

This topic is locked

Pure ASP Upload Problem...Please Help!!!

Posted 20 Feb 2003 17:19:01
1
has voted
20 Feb 2003 17:19:01 Katherine Williams posted:
Hello, and thanks in advance for any help,

I purchased the Pure ASP Upload 2.09 Bundle Pack recently, and it works great. Buta feature from the Add-On pack is not working for me at all. It's the "Rename Uploaded Files" SB. When I attempt to add that SB to the page, the page gives the following error:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>Microsoft VBScript runtime error '800a01a8'

Object required: 'UploadRequest'

/Employment/ScriptLibrary/incPUAddOn.asp, line 110<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

I have no idea what the problem is, as the page worked fine with the Pure ASP Upload before I added the "Rename Uploaded Files" SB. Can anyone please help me to figure out what's going on here? Thanks.

KWilliams

Replies

Replied 21 Feb 2003 14:55:45
21 Feb 2003 14:55:45 George Petrov replied:
Did you apply the Add-On pack on the same page that the Pure Upload is on?

George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFreaks.nl
--------------------------------------------------
Replied 21 Feb 2003 15:09:28
21 Feb 2003 15:09:28 Katherine Williams replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Did you apply the Add-On pack on the same page that the Pure Upload is on?

George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFreaks.nl
--------------------------------------------------
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Yes, it's on the same page as the Pure ASP Upload. But as soon as I add the "Rename Uploaded Files" SB, it automatically gives me that error message. If I take the "Rename Uploaded Files" SB, the page works again.

KWilliams
Replied 24 Feb 2003 11:04:16
24 Feb 2003 11:04:16 George Petrov replied:
Could you specify what options you have selected for PU and what for the Rename extension?

George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFreaks.nl
--------------------------------------------------
Replied 24 Feb 2003 15:23:27
24 Feb 2003 15:23:27 Katherine Williams replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Could you specify what options you have selected for PU and what for the Rename extension?

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

<b> The PU options I selected are:</b>(This works fine without the Rename)
Upload Folder: "Resumes"
Allowed Extensions: PDF,DOC
Required Upload: No
Filename: Prefix with full name
Conflict Handling: Overwrite
Timeout: 600 Seconds
Limit Upload Size to: 150 KB
Get files from: form1
Go to: No redirect page selected
Use Progress Template: Blue Flash Progress Bar

<b> The Rename Extension options I selected are:</b>
Upload Folder: "Resumes"
Rename Mask: "myFile_##name##.##ext##"

As soon as I add the Rename Extension, I get that error for the entire page. I've also tried the other "Conflict Handling" options to see if that would make a difference, but it doesn't. My idea was that once I get it working, I wanted to rename the files after their App_ID's. This has become a real headache, as I have a deadline for this project. Thanks for any help.

KWilliams
Replied 25 Feb 2003 18:53:36
25 Feb 2003 18:53:36 Katherine Williams replied:
Here is the code on the include page in question "incPUAddOn": (I've marked Line 110) This project is almost due, so this problem is very urgent! Thanks.

KWilliams


&lt;SCRIPT LANGUAGE="VBSCRIPT" RUNAT="SERVER"&gt;
'*** Pure ASP File Upload Add On Pack
*** CODE
Replied 26 Feb 2003 09:33:08
26 Feb 2003 09:33:08 Patrick Woldberg replied:
Could you give the code of the main asp file where you inserted the Pure Upload and Rename Uploaded Files SB.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 26 Feb 2003 15:16:17
26 Feb 2003 15:16:17 Katherine Williams replied:
Yes,
Below is the code for the entire page. Thanks for any help that you can give me. I hope that I can get this solved before my deadline.

KWilliams


&lt;%@LANGUAGE="JAVASCRIPT"%&gt;
*** CODE ***
Replied 26 Feb 2003 18:34:26
26 Feb 2003 18:34:26 Katherine Williams replied:
I just tried a test page without the Update Behavior. It only contained the Pure ASP Upload & Rename Uploaded Files SB with one Recordset. This test page came out with the exact same error message as the page with the Update Behavior. I thought that information might help. Thanks.

KWilliams
Replied 26 Feb 2003 20:47:50
26 Feb 2003 20:47:50 Katherine Williams replied:
I've been researching other sites for information on this error, and found a guy who got the exact same error message with Pure ASP Upload a year ago. Here's the link to the thread via Google's User Groups: groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF8&threadm=a53iak%24rlk%241%40forums.macromedia.com&rnum=2&prev=/groups%3Fq%3DMicrosoft%2BVBScript%2Bruntime%2Berror%2B%27800a01a8%27%2BObject%2Brequired:%2B%27UploadRequest%27%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF8%26selm%3Da53iak%2524rlk%25241%2540forums.macromedia.com%26rnum%3D2

KWilliams
Replied 27 Feb 2003 15:15:32
27 Feb 2003 15:15:32 Patrick Woldberg replied:
Change the following code:

&lt;%
// *** Rename Uploaded Files 1.6.0
if (String(Request.QueryString("GP_upload") != "unknown" {
var REUF_path = ""
var REUF_renameMask = "myFile_##name##.##ext##"
RenameUploadedFiles(REUF_path,REUF_renameMask);
}
%&gt;

in:

&lt;SCRIPT LANGUAGE="VBSCRIPT" RUNAT="SERVER"&gt;
// *** Rename Uploaded Files 1.6.0
If (CStr(Request.QueryString("GP_upload") &lt;&gt; "" Then
var REUF_path = "upload"
var REUF_renameMask = "myFile_##name##.##ext##"
RenameUploadedFiles REUF_path,REUF_renameMask
end if
&lt;/SCRIPT&gt;

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 27 Feb 2003 15:46:52
27 Feb 2003 15:46:52 Katherine Williams replied:
Ok, I tried your suggestion, and we're making progress. The error message is gone now, and the page appears to work fine. It goes to the "thank you" page after uploading the resume attachment. But it's not actually renaming the file at all.

After trying your suggested code, I tried different path names...like "Resumes" (The folder the resumes are in), "path", ""...but none of them worked (including your originally suggested path "upoad". Do you know why it would upload fine, but not rename the file? I placed the "Rename Uploaded Files" code right after the "Pure ASP Upload" code.

Thanks for your help...at least we are going in the right direction.

KWilliams
Replied 27 Feb 2003 16:08:40
27 Feb 2003 16:08:40 Patrick Woldberg replied:
Change:

var REUF_path = "upload"

in:

var REUF_path = "Resumes"

That should do the trick

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 27 Feb 2003 16:13:09
27 Feb 2003 16:13:09 Katherine Williams replied:
I actually did already try that several times, but it still didn't work. Do you have any other suggestions? Thanks.

KWilliams
Replied 27 Feb 2003 16:24:05
27 Feb 2003 16:24:05 Patrick Woldberg replied:
Try the next code:

&lt;SCRIPT LANGUAGE="VBSCRIPT" RUNAT="SERVER"&gt;
If (CStr(Request.QueryString("GP_upload") &lt;&gt; "" Then
Dim REUF_path, REUF_renameMask
REUF_path = "Resumes"
REUF_renameMask = "myFile_##name##.##ext##"
RenameUploadedFiles REUF_path,REUF_renameMask
end if
&lt;/SCRIPT&gt;

instead of the code a gave before


--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 27 Feb 2003 16:40:04
27 Feb 2003 16:40:04 Katherine Williams replied:
Ok, it's now actually renaming the file...YEAH!!! But it's not saving the path into the database. It's just saving the filename without the path. In the Pure ASP Upload SB, I selected "Prefix with Full Path" on the Filename option, which did work by itself. But the rename file is only saving the filename.

The full path should be "/Employment/Resumes/myFile_Resume_Example.doc"
but it's only saving the file name "myFile_Resume_Example.doc"
I've tried the following paths:
REUF_path = "Resumes"
REUF_path = ""
Do you have any suggestions on how I can get it to save the complete path? Thanks. (We're so close<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

KWilliams
Replied 27 Feb 2003 17:26:42
27 Feb 2003 17:26:42 Patrick Woldberg replied:
Find the next code in the incPUAddOn.asp:

if REUF_path = "" then
UploadRequest.Item(REUF_curKey).Item("Value" = REUF_curPath & REUF_newFileName
else
UploadRequest.Item(REUF_curKey).Item("Value" = REUF_newFileName
end if

change it in:

UploadRequest.Item(REUF_curKey).Item("Value" = REUF_curPath & REUF_newFileName

it isn't the best way, but it should work.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 27 Feb 2003 17:38:00
27 Feb 2003 17:38:00 Katherine Williams replied:
I changed:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>if REUF_path = "" then
UploadRequest.Item(REUF_curKey).Item("Value" = REUF_curPath & REUF_newFileName
else
UploadRequest.Item(REUF_curKey).Item("Value" = REUF_newFileName
end if<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

To:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>if REUF_path = "" then
UploadRequest.Item(REUF_curKey).Item("Value" = REUF_curPath & REUF_newFileName
end if<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

But it didn't change anything with the path that was saved. It worked the same as it did before I made your suggested changes.

KWilliams
Replied 27 Feb 2003 17:50:22
27 Feb 2003 17:50:22 Patrick Woldberg replied:
When going over your code again I see:

&lt;SCRIPT LANGUAGE="VBSCRIPT" RUNAT="SERVER"&gt;
//Redirect after upload and rename
If (CStr(Request.QueryString("GP_upload") &lt;&gt; "" Then
Response.Redirect "redirect_main.asp"
end if
&lt;/SCRIPT&gt;

This shouldn't be there because it redirects before updating the database.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 27 Feb 2003 17:52:48
27 Feb 2003 17:52:48 Katherine Williams replied:
I actually took that out of the page a while ago, before we started testing these changes.

KWilliams
Replied 03 Mar 2003 16:42:16
03 Mar 2003 16:42:16 Katherine Williams replied:
Hi Patrick,

I've got it somewhat working, but it's still not going to the subfolder. It's going to /Employment, and it should be going into /Employment/Resumes. I've tried both REUF_path = "" and REUF_path = "Resumes".

Also, I need to include a Session Variable called App_ID into the rename mask. I looked through George's FAQ about this at www.dmxzone.com/showDetail.asp?TypeId=7&NewsId=3403, and tried all of his suggestions. I've also tried:

REUF_renameMask = Session("App_ID" & "##name##.##ext##"
REUF_renameMask = "Session('App_ID') ##name##.##ext##"
REUF_renameMask = Session("App_ID" & ".##ext##"

...and others, but none of them worked. Do you have any suggestions? Thanks.

KWilliams
Replied 04 Mar 2003 20:58:12
04 Mar 2003 20:58:12 Katherine Williams replied:
Can anyone please help me? Why am I having so many problems with something that should be simple? It's still not saving the file into a subfolder, as it's supposed to do, and I haven't gotten a response since Feb 27th. Thanks for any help.

KWilliams
Replied 05 Mar 2003 09:59:38
05 Mar 2003 09:59:38 Patrick Woldberg replied:
I've been testing it with george and we found the bug, if you use the the original version of the Rename Uploaded File SB you only need to change:

if (String(Request.QueryString("GP_upload") != "unknown" {

in:

if (String(Request.QueryString("GP_upload") != "undefined" {

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 06 Mar 2003 15:34:51
06 Mar 2003 15:34:51 Katherine Williams replied:
Hi Patrick,

Thanks for responding. I tried what you suggested by completely removing the previous code, and adding a new Rename Uploaded Files SB. Then I replaced the code that you suggested. The results were:

1) Database: It saved the resume into the DB using the correct renamed file name, but without any path. It saved it as "myFile_Resume_Example.doc" and it should have saved it as "/Employment/Resumes/myFile_Resume_Example.doc".

2) Folder: It also did not save the actual resume into the folder with the renamed name...it saved it with the original file name. It saved it as "Resume_Example", and it should have saved it as "myFile_Resume_Example.doc". But it did save it into the correct folder "Resumes".

I have no idea what's going on with it. I'm getting really confused. The VBScript solution started saving the file name with the new renamed file name, but without the correct path name in the DB. Now it's even worse. I'm not sure what to do next. I know that you've been trying to help, and I really appreciate it.

KWilliams
Replied 11 Mar 2003 16:04:06
11 Mar 2003 16:04:06 Katherine Williams replied:
Hello out there,

I haven't gotten a response in several days to my problem with the Add-On Pack. I REALLY need this resolved very soon. My boss is breathing down my back to get this app done, and I can't without the Rename problem solved.

I purchased the Pure ASP Upload 2.09 w/ Add-On Pack to take away from my production time, but I'm not at all happy that I've had to spend all of this time figuring out a solution to something I feel should have been solved before I purchased your product. Please help!!!

P.S. I've really appreciated Patrick's help so far, but I really need a solution ASAP. Thanks.

KWilliams
Replied 11 Mar 2003 17:08:58
11 Mar 2003 17:08:58 Patrick Woldberg replied:
I am testing the situation and hope to have some result for you soon

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------

Reply to this topic