Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out the URL of a file when uploaded with Filezilla

Dear Stackoverflow users,

I would like to know how to find out the URL of a file after it has been uploaded to a file server, so that I can view it in ex. safari.

like image 247
Toby van Kempen Avatar asked Oct 20 '22 11:10

Toby van Kempen


2 Answers

Not possible... FileZilla has no idea how FTP paths map to HTTP paths or if there even is an HTTP path to get to whatever you uploaded

like image 85
Robert Levy Avatar answered Nov 15 '22 11:11

Robert Levy


i think , this action is needed. but filezilla not supported.

but you can use this web app client.

Ftp path To http path (view demo)

html code

<h2>Ftp path To http path</h2>
<table>
  <tr>
    <td><label for="http_path">http base path</label></td>
    <td><input id="http_path" type="text"> (e.g., http://example.com)</td>
  </tr>
  <tr>
    <td><label for="ftp_path">ftp path</label></td>
    <td><input id="ftp_path" type="text"> (e.g., ftp://username@domainOrIp/path)</td>
</tr>
  <tr>
    <td><label for="output">output</label></td>
    <td><input id="output" type="text"></td>
  </tr>
</table>

css code

#http_path,#ftp_path{
  width : 200px;
}
#output{
  width : 500px;
}

js code

function setCookie(cname, cvalue, exdays) {
    //w3schools.com
    var d = new Date();
    d.setTime(d.getTime() + (exdays*24*60*60*1000));
    var expires = "expires="+ d.toUTCString();
    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
} 
function getCookie(cname) {
    //w3schools.com
    var name = cname + "=";
    var decodedCookie = decodeURIComponent(document.cookie);
    var ca = decodedCookie.split(';');
    for(var i = 0; i <ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') {
            c = c.substring(1);
        }
        if (c.indexOf(name) == 0) {
            return c.substring(name.length, c.length);
        }
    }
    return "";
} 

$(function(){
    $('#http_path').val(getCookie('http_path'));
    $('#http_path,#ftp_path').change(function(e){
        setCookie('http_path',$('#http_path').val(),365);
        $('#output').val(
            $('#http_path').val() 
            + '/' +
            $('#ftp_path').val().split('/').slice(3).join('/')
       );
  });
  $('#output').click(function(){
    $(this).select();
  });
});
like image 25
Think Big Avatar answered Nov 15 '22 11:11

Think Big