Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Filezilla上传文件时如何查找文件的URL_Url_Ftp_Filezilla_Fileserver - Fatal编程技术网

使用Filezilla上传文件时如何查找文件的URL

使用Filezilla上传文件时如何查找文件的URL,url,ftp,filezilla,fileserver,Url,Ftp,Filezilla,Fileserver,亲爱的Stackoverflow用户: 我想知道如何在上传到文件服务器后找到文件的URL,以便在ex.safari中查看。右键单击远程文件并选择“将URL复制到剪贴板”,然后粘贴到其他位置。当然,这只是获取文件的FTP URL。不可能。。。FileZilla不知道FTP路径如何映射到HTTP路径,也不知道是否有HTTP路径可以访问您上传的任何内容,我认为,需要执行此操作。但不支持filezilla 但您可以使用此web应用程序客户端 html代码 <h2>Ftp path To h

亲爱的Stackoverflow用户:


我想知道如何在上传到文件服务器后找到文件的URL,以便在ex.safari中查看。

右键单击远程文件并选择“将URL复制到剪贴板”,然后粘贴到其他位置。当然,这只是获取文件的FTP URL。

不可能。。。FileZilla不知道FTP路径如何映射到HTTP路径,也不知道是否有HTTP路径可以访问您上传的任何内容,我认为,需要执行此操作。但不支持filezilla

但您可以使用此web应用程序客户端

html代码

<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>
#http_path,#ftp_path{
  width : 200px;
}
#output{
  width : 500px;
}
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();
  });
});
js代码

<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>
#http_path,#ftp_path{
  width : 200px;
}
#output{
  width : 500px;
}
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();
  });
});
函数setCookie(cname、cvalue、exdays){
//w3schools.com
var d=新日期();
d、 设置时间(d.getTime()+(exdays*24*60*60*1000));
var expires=“expires=“+d.toutString();
document.cookie=cname+“=”+cvalue+”;“+expires+”;path=/”;
} 
函数getCookie(cname){
//w3schools.com
变量名称=cname+“=”;
var decodedCookie=decodeURIComponent(document.cookie);
var ca=decodedCookie.split(“;”);

对于(var i=0;i其他一些FTP客户端软件确实具有此功能。OSX客户端“获取”例如,当您第一次尝试获取URL时,会要求您输入根http目录,然后会记住这一点。如果您第一次在最高级别的http目录中执行此操作,则它也适用于子目录。

是否有方法在不使用Filezilla的情况下找到它,或者在没有路径的情况下建立路径?请询问您的服务器管理员o查看他们的文档是我们能给你的最好答案。没有任何工具或其他人可以帮助你的标准化映射。