Skip to content

Instantly share code, notes, and snippets.

@mgng mgng/result.txt
Created Sep 20, 2012

Embed
What would you like to do?
multiple upload のやつ
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
)
)
)
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
)
)
)
<!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
You can’t perform that action at this time.