|
 |
|
ขอถามหน่อยครับ จากลิงข้างบนที่เป็นการอัพโหลดหลายๆไฟล์ ถ้าผมอยากให้มานมี file field |
|
 |
|
|
 |
 |
|
รอด้วยความหวัง
|
 |
 |
 |
 |
Date :
2009-09-24 16:49:34 |
By :
AkiDanGer |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
รอด้วยความหวัง
|
 |
 |
 |
 |
Date :
2009-09-25 08:20:23 |
By :
AkiDanGer |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันขึ้นอยู่กับบราวเซอร์ด้วยครับ ลองใช่ซาฟารีครับ
|
 |
 |
 |
 |
Date :
2009-09-25 09:26:10 |
By :
NanoTHoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<?php
// e.g. url:"page.php?upload=true" as handler property
if(isset($_GET['upload']) && $_GET['upload'] === 'true'){
$headers = getallheaders();
if(
// basic checks
isset(
$headers['Content-Type'],
$headers['Content-Length'],
$headers['X-File-Size'],
$headers['X-File-Name']
) &&
$headers['Content-Type'] === 'multipart/form-data' &&
$headers['Content-Length'] === $headers['X-File-Size']
){
// create the object and assign property
$file = new stdClass;
$file->name = basename($headers['X-File-Name']);
$file->size = $headers['X-File-Size'];
$file->content = file_get_contents("php://input");
// if everything is ok, save the file somewhere
if(file_put_contents('files/'.$file->name, $file->content))
exit('OK');
}
// if there is an error this will be the output instead of "OK"
exit('Error');
}
?>
|
 |
 |
 |
 |
Date :
2009-09-25 09:39:46 |
By :
NanoTHoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับ แต่ไม่ค่อยเข้าใจโค๊ดอะครับ
โค๊ดที่ให้นี่ใช้กับ ie ใช้ปะคับ หรือเบราเซอร์ตัวอื่น
..........ขอบคุณ คุณนาโนมากครับที่ช่วยตอบ......
|
 |
 |
 |
 |
Date :
2009-09-25 11:00:45 |
By :
AkiDanGer |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไอีอีใช้ไม่ได้ครับ แต่ยังไม่เคยลองเวอร์ชั่นใหม่ๆ ลองดูก็ได้ครับ แต่ซาฟารี 4 รองรับแน่นอนครับ
|
 |
 |
 |
 |
Date :
2009-09-25 11:10:10 |
By :
NanoTHoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
กรณีที่นำไปรันกะซาฟารี แล้วตัวอื่นที่เคยรันกะIE จะมีปัญหาปะครับ
.....................ขอบคุณมากครับ...................
|
 |
 |
 |
 |
Date :
2009-09-25 14:00:30 |
By :
AkiDanGer |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พัฒนาเว็บควรให้ใ้ช้ได้ ทุก browser นะครับ น่าเกลียดตายถ้าบอกว่า เว็บของเราใช้ได้แต่ safari เท่านั้นกรุณาไปโหลดมาลงถ้าอยากใช้เว็บของเรา 
|
 |
 |
 |
 |
Date :
2009-09-25 14:11:45 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมว่ามันแล้วแต่งานนะครับพี่ปลากริม อย่างของธนคารกรุงเทพ จำเพาะไออีเท่านั้น ใช้ตัวอื่นเข้าไม่ได้ เพราะว่ามีขำสั่งไม่สนับสนุนตัวอื่น
อย่างบริษัทผมหน้าเว็ปทั่ไปเข้าได้หมดเหมือนกันกับของธนาคาร แต่ถ้าล็อกอินกำหนดให้ใช้เฉพาะเน็ตแคป ซาฟารี หรือโครมมี่ เท่านั้นอะครับ
|
 |
 |
 |
 |
Date :
2009-09-25 15:26:22 |
By :
NanoTHoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้า intranet คงไม่เป็นไร แต่ internet นี่คงทำไม่ได้ ดังนั้นผมเทสงานจาก ie6 เสมอ
|
 |
 |
 |
 |
Date :
2009-09-25 15:44:25 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
สะเทือนไงม่ายรู้ 555+ แต่เจ้านายบอกเราใช้แค่ ie ที่มากับแผ่น แล้วตัวที่อัพเดทก้อม่ายเอาจมปลักอยู่กับ ie6 เฮ้อ เปิดตัวอื่นเพี้ยนหมด แปวว
|
 |
 |
 |
 |
Date :
2009-09-25 17:43:15 |
By :
gummezaka |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|