我想转换 vb 此代码



我想转换 vb 这段代码

<?php
// Where the file is going to be placed
$target_path = "uploads/";
/* Add the original filename to our target path.
Result is "uploads/filename.extension" */
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); 
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo "The file ".  basename( $_FILES['uploadedfile']['name']).
    " has been uploaded";
} else{
    echo "There was an error uploading the file, please try again!";
    echo "filename: " .  basename( $_FILES['uploadedfile']['name']);
    echo "target_path: " .$target_path;
}
?>

请更清楚地解释您的情况。

谷歌它可以找到很多关于"如何使用 asp.net 上传文件"的代码示例。

有些如下:

  • 示例代码
  • 来自 MSDN

只需浏览示例和教程,并对其进行更改以满足您的需求。

希望对:)有所帮助

相关内容

  • 没有找到相关文章

最新更新