Created
September 20, 2012 04:37
-
-
Save mgng/3754002 to your computer and use it in GitHub Desktop.
multiple upload のやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array | |
( | |
[files] => Array | |
( | |
[name] => Array | |
( | |
[0] => test.json | |
[1] => test.php | |
) | |
[type] => Array | |
( | |
[0] => application/octet-stream | |
[1] => text/json | |
) | |
[tmp_name] => Array | |
( | |
[0] => C:\Windows\Temp\phpD1D6.tmp | |
[1] => C:\Windows\Temp\phpD1D7.tmp | |
) | |
[error] => Array | |
( | |
[0] => 0 | |
[1] => 0 | |
) | |
[size] => Array | |
( | |
[0] => 689 | |
[1] => 848 | |
) | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array | |
( | |
[files] => Array | |
( | |
[name] => Array | |
( | |
[0] => test.txt | |
[1] => test_300k_over.txt | |
) | |
[type] => Array | |
( | |
[0] => text/plain | |
[1] => | |
) | |
[tmp_name] => Array | |
( | |
[0] => C:\Windows\Temp\phpDAFC.tmp | |
[1] => | |
) | |
[error] => Array | |
( | |
[0] => 0 | |
[1] => 2 | |
) | |
[size] => Array | |
( | |
[0] => 109731 | |
[1] => 0 | |
) | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="ja-JP"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>マルチプルアップロードテスト</title> | |
</head> | |
<body> | |
<form action="./upload_test.php" method="POST" enctype="multipart/form-data"> | |
<input type="hidden" name="MAX_FILE_SIZE" value="307200" /> | |
<input type="file" name="files[]" multiple="multiple" /> | |
<input type="submit" value="upload" /> | |
</form> | |
<xmp><?php | |
print_r( $_FILES ); | |
?></xmp> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment