Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to access ftp files

    i uploaded photos via filezilla to my FTP acount,
    when im copying the file link to the browser it ask for username & password.

    the link start with "ftp://..."

    thank you for your help.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,872
    Thanks
    6
    Thanked 1,029 Times in 1,002 Posts
    Well, yes, if you are accessing the files via the file transfer protocol (ftp://), of course you need to input a user name and password, just as you would with any FTP client (like Filezilla). If you want to view/download the files in your browser without entering a password you need the hypertext transfer protocol (http://).

  • #3
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    When you move the file via FTP it will ask you for a user/password. The process you use (protocol) is FTP://.....

    If you moved a file to my_web you would access it with http://my_web/my_image.jpg assuming isn't not a secured (https) server.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #4
    New Coder
    Join Date
    Jun 2012
    Location
    New York
    Posts
    37
    Thanks
    0
    Thanked 1 Time in 1 Post
    It's a standard case. To reach your FTP server through browser you need to be authorized.

  • #5
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i can move it to the site folder and see the file but i prefer to kip the files in the ftp folder.

    how can i change my protocol from ftp: to http: without relocate the files?

  • #6
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    You simply use http as your protocol instead of ftp.
    That assumes that the files moved via FTP are available to be served from a published directory such as public_html. If they are above the public_html or www or whatever published directory, you cannot use http to access them.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •