Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Sep 11, 2024
1 parent 4492093 commit 2b31c10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,10 @@ function createThrobber(img) {

这个例子演示了如何异步上传文件,在服务器端使用了 PHP,在客户端使用了 JavaScript。

```js
```php
<?php
if (isset($_FILES['myFile'])) {
// Example:
// 示例:
move_uploaded_file($_FILES['myFile']['tmp_name'], "uploads/" . $_FILES['myFile']['name']);
exit;
}
Expand Down

0 comments on commit 2b31c10

Please sign in to comment.