Jump to content


Photo

SmartFTP library ASP. Object doesn't support this property or method: 'g_objFTP.Directory'


  • Please log in to reply
5 replies to this topic

#1 Mattias Nordin

Mattias Nordin
  • Members
  • 3 posts

Posted 24 November 2007 - 03:01 PM

Hello forum gurus!

I have installed the SmartFTP Library and want to test the UploadActiveX.asp script to see if i can use the upload part on my website.

I want to test if it is possible to upload files without having to install a FTP software with this active x tool.

The software is installed on my IIS server and i can run the script. When i enter the login information into the form and send it i get
an error message:

SmartFTP Library ASP Demo
This sample will connect to remote server and allow you to list directories and download files.

Connect | Disconnect | List

Initializing SmartFTP Library
Connecting...
Connected.

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'g_objFTP.Directory'

/web07/tab2/fotoalbum/front/upload_test/uploadActiveX.asp, line 81


What does this mean? When i run the smart ftp application to the server i need to cannect in active mode since my firewall has limited ports open.
Could this have something to do with the error?

Best Regards
Mattias Nordin

#2 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 25 November 2007 - 03:29 AM

Hello ...

Please get the latest version of the FTP Library or replace g_objFTP.Directory with g_objFTP.Items

Regards,
Mat

#3 Mattias Nordin

Mattias Nordin
  • Members
  • 3 posts

Posted 25 November 2007 - 09:58 AM

Hello ...

Please get the latest version of the FTP Library or replace g_objFTP.Directory with g_objFTP.Items

Regards,
Mat



Did you replace the version yesterday? I installed it and tried it yesterday. It sounds like it's an old library on the website?!

Best regards
Mattias

#4 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 25 November 2007 - 10:28 AM

Hello ...

I don't know where you downloaded the file from but the correct version is on our web server. Please follow the instructions from my last reply.

Regards,
Mat

#5 Mattias Nordin

Mattias Nordin
  • Members
  • 3 posts

Posted 25 November 2007 - 01:51 PM

Hi again,

Is it possible to download the library from different locations? Anyway, I just downloaded it again and reinstalled it on my webserver.

Download location: http://www.smartftp....tplib/download/

After i restarted the server i tried to run the ASP file once more. It gives the same error message.

But it works if i replace the objDirectory name as you said before.

'Set objDirectory = g_objFTP.Directory
Set objDirectory = g_objFTP.Items

I hoped that it would be possible to upload files from my computer (local harddrive) to the webserver by using this library. Is this possible?

Thank you for your help.

Best regards
Mattias

#6 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 25 November 2007 - 03:20 PM

Hello ..

I don't understand what you are trying to do? If you want to upload a file to an FTP server please see the Upload.vbs sample.
If you would like to tunnel it through an web server:
local computer -> HTTP PUT -> FTP Server
then you have to add the function to the asp sample which processes HTTP uploads. You would basically upload the file to a temporary file on the HTTP server and then use the FTP Library to upload it from the HTTP server to the FTP server.

Regards,
Mat




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users