Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Transfer local files to ftp through javascript

Transfer local files to ftp through javascript

Scheduled Pinned Locked Moved ASP.NET
javascriptsysadmintutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bigmacrox
    wrote on last edited by
    #1

    Is there a way to transfer local files to a ftp server using javascript? I've tried using the FileSystemObject's File.Copy method, but it does not recognize the ftp path, i.e ftp://example. thx

    G V I 3 Replies Last reply
    0
    • B bigmacrox

      Is there a way to transfer local files to a ftp server using javascript? I've tried using the FileSystemObject's File.Copy method, but it does not recognize the ftp path, i.e ftp://example. thx

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      That is because the FTP adress is not a file path. The only way to send a file to an FTP server is using FTP. Have a look at the FTP console program. You can put commands for it in a text file and start it with the file name as a parameter. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • B bigmacrox

        Is there a way to transfer local files to a ftp server using javascript? I've tried using the FileSystemObject's File.Copy method, but it does not recognize the ftp path, i.e ftp://example. thx

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        I don't think FileSystemObject can access FTP. You can try using some FTP ActiveX Control for that. Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://www.dotnetjunkies.com/weblog/deepak/
        http://deepakvasudevan.blogspot.com/
        http://deepak.blogdrive.com/

        1 Reply Last reply
        0
        • B bigmacrox

          Is there a way to transfer local files to a ftp server using javascript? I've tried using the FileSystemObject's File.Copy method, but it does not recognize the ftp path, i.e ftp://example. thx

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          open a port and send it through. I dont do things like that in javascript, since it doesn't make sense to. But just open the port. Send your commands to logon and send the file. Its pretty simple. 1 line of code equals many bugs. So don't write any!!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups