2013-01-08 39 views

回答

0

在这里你必须检查在serverside。如果该文件不在那里,则会上传,否则会显示警报消息。

对于PHP你可以使用下面的代码。

<?php 
    if (file_exists("http://www.example.com/abc.jpg")) 
     echo "File Exists"; // Upload the file 
    else 
     echo "File does not Exists"; //show Alert Message 
    ?> 
相关问题