MetaBuilders.FileUp.wsc Upload Error

This is a discussion on "MetaBuilders.FileUp.wsc Upload Error" within the Classic ASP section. This forum, and the thread "MetaBuilders.FileUp.wsc Upload Error are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Mar 27th, 2007, 15:36
Junior Member
Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
MetaBuilders.FileUp.wsc Upload Error

I'm using the MetaBuilders.FileUp.wsc upload scripts from http://www.4guysfromrolla.com/ and it works on one page when I upload a file.. but on another page, it gives me an error:

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'SavePath'

I don't understand why its working on one page and not the other.. everything is the same.. location of the files, variables, everything..

Here is the code for the page that works:
Code: Select all
 Dim MBRequest
 Dim strPath
 strPath = "script:" & Server.MapPath("MetaBuilders.FileUp.wsc")
 set MBRequest = GetObject(strPath)
 
MBRequest("fleUpload").SavePath = "D:\inetpub\coleyinc\leads\uploads\" & rsUpdateLead("companyID") & "\"
    MBRequest("fleUpload").Save
and then the code for page that isn't working is the same, although different path:
Code: Select all
Dim MBRequest
 Dim strPath
 strPath = "script:" & Server.MapPath("MetaBuilders.FileUp.wsc")
 set MBRequest = GetObject(strPath)
 
MBRequest("fleUpload").SavePath = "D:\inetpub\coleyinc\leads\uploads\common\"
   MBRequest("fleUpload").Save
any suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Mar 28th, 2007, 01:23
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: MetaBuilders.FileUp.wsc Upload Error

Go back to where you found this code and checkout the documentation.
http://www.4guysfromrolla.com/webtech/012401-1.shtml

Either:
1. MBRequest("fleUpload") isn't an object
2. MBRequest("fleUpload") is an object but it doesn't have a SavePath method. This could be a typo...
The basic example to work from is...
Dim MBRequest
Set MBRequest = GetObject( "script:" & Server.MapPath( "MetaBuilders.FileUp.wsc" ) )

If MBRequest("submit") = "upload" then
Response.Write MBRequest("MyTextField") & vbNewLine
Response.Write MBRequest("File1").Path & _
MBRequest("File1").FileName & vbNewLine
MBRequest("File1").Save
End If
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
error, uploads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Getting the "Microsoft JET Database Engine error '80040e14'" error. VegaLA Classic ASP 3 Jan 26th, 2008 00:12
Keep getting error message Microsoft VBScript runtime error '800a01a8' cpando1974 Classic ASP 2 Aug 7th, 2007 12:00
Error 500 - Internal server error JasonStanley PHP Forum 3 Apr 23rd, 2007 17:56
553 server error trying to upload MS Word docs audiopleb PHP Forum 4 Sep 26th, 2006 08:24


All times are GMT. The time now is 15:54.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42