BMS-HOSxP Community

HOSxP => นอกเรื่อง => ข้อความที่เริ่มโดย: panus_t ที่ พฤศจิกายน 22, 2012, 10:38:36 AM

หัวข้อ: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: panus_t ที่ พฤศจิกายน 22, 2012, 10:38:36 AM
สอบถาม การทำลิงค์ Download
1.ใช้ Appserv 2.5.10
2.ทำลิงค์ไปที่ไฟล์เพื่อให้ดาวน์โหลด เช่น
http://192.168.1.231/nurse/ER/การพัฒนาความรูักระบวนการเบาหวาน.pptx

ปัญหาคือไฟล์ที่มี นามสกุล 4 ตัว เช่น docx  pptx  xlsx
เมื่อดาวน์โหลดแล้วจะเป็นไฟล์ zip เมื่อเปิดไฟล์ zip มาดู ข้างในเป็นไฟล์อะไรไม่รู้ครับ  ;D ???
สามารถแก้ไขได้อย่างไรครับ
หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: เกื้อกูล ครับ.. ที่ พฤศจิกายน 22, 2012, 11:02:27 AM
rename to dm.zip  ง่ายกว่า ก่อนนำไปวางให้ดาวน์โหลด
หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: chitvichai ที่ พฤศจิกายน 22, 2012, 11:04:04 AM
สอบถาม การทำลิงค์ Download
1.ใช้ Appserv 2.5.10
2.ทำลิงค์ไปที่ไฟล์เพื่อให้ดาวน์โหลด เช่น
http://192.168.1.231/nurse/ER/การพัฒนาความรูักระบวนการเบาหวาน.pptx

ปัญหาคือไฟล์ที่มี นามสกุล 4 ตัว เช่น docx  pptx  xlsx
เมื่อดาวน์โหลดแล้วจะเป็นไฟล์ zip เมื่อเปิดไฟล์ zip มาดู ข้างในเป็นไฟล์อะไรไม่รู้ครับ  ;D ???
สามารถแก้ไขได้อย่างไรครับ

จากรูปตอน download บันทึกนามสกุลผิด เพราะ
นามสกุล 4 ตัว เช่น docx  pptx  xlsx มันจะใช้การบีบอัดคล้าย zip ไฟล์แล้ว
ต้องเปลียนนามสกุลก่อนแล้วค่อยเปิด

แต่แนะนำให้ zip ไฟล์ก่อนให้ download
หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: เกื้อกูล ครับ.. ที่ พฤศจิกายน 22, 2012, 11:05:46 AM
BROWSERที่ใช้ดาวน์โหลด  คือ  ????
หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: panus_t ที่ พฤศจิกายน 22, 2012, 11:19:27 AM
BROWSERที่ใช้ดาวน์โหลด  คือ  ????

IE8 ครับ ส่วน Chome ทดสอบเมื่อสักพักได้เฉยเลยครับ   :o ;D สงสัยต้องเปลี่ยน Browser :D
หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: nongnine ที่ พฤศจิกายน 22, 2012, 11:37:24 AM
add the following to the /etc/mime.types file and restart apache and the problem should be fixed.

# Added by myname 2009-06-03
application/vnd.ms-word.document.macroEnabled.12                        docm
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/vnd.ms-powerpoint.template.macroEnabled.12                  potm
application/vnd.openxmlformats-officedocument.presentationml.template   potx
application/vnd.ms-powerpoint.addin.macroEnabled.12                     ppam
application/vnd.ms-powerpoint.slideshow.macroEnabled.12                 ppsm   
application/vnd.openxmlformats-officedocument.presentationml.slideshow  ppsx
application/vnd.ms-powerpoint.presentation.macroEnabled.12              pptm
application/vnd.openxmlformats-officedocument.presentationml.presentation       pptx
application/vnd.ms-excel.addin.macroEnabled.12                          xlam
application/vnd.ms-excel.sheet.binary.macroEnabled.12                   xlsb
application/vnd.ms-excel.sheet.macroEnabled.12                          xlsm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet       xlsx   
application/vnd.ms-excel.template.macroEnabled.12                       xltm   
application/vnd.openxmlformats-officedocument.spreadsheetml.template    xltx
หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: chk ที่ พฤศจิกายน 22, 2012, 11:37:46 AM
 8)  ใช้ Chome ดีกว่าขอรับ  เร็วได้ใจนะขอรับ  ;D
หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: panus_t ที่ พฤศจิกายน 22, 2012, 15:58:19 PM
add the following to the /etc/mime.types file and restart apache and the problem should be fixed.

# Added by myname 2009-06-03
application/vnd.ms-word.document.macroEnabled.12                        docm
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/vnd.ms-powerpoint.template.macroEnabled.12                  potm
application/vnd.openxmlformats-officedocument.presentationml.template   potx
application/vnd.ms-powerpoint.addin.macroEnabled.12                     ppam
application/vnd.ms-powerpoint.slideshow.macroEnabled.12                 ppsm   
application/vnd.openxmlformats-officedocument.presentationml.slideshow  ppsx
application/vnd.ms-powerpoint.presentation.macroEnabled.12              pptm
application/vnd.openxmlformats-officedocument.presentationml.presentation       pptx
application/vnd.ms-excel.addin.macroEnabled.12                          xlam
application/vnd.ms-excel.sheet.binary.macroEnabled.12                   xlsb
application/vnd.ms-excel.sheet.macroEnabled.12                          xlsm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet       xlsx   
application/vnd.ms-excel.template.macroEnabled.12                       xltm   
application/vnd.openxmlformats-officedocument.spreadsheetml.template    xltx

ขอบคุณครับ... ใช้ได้แล้วครับ   ;D เยี่ยมมาก 100 Thank ครับ
หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: panus_t ที่ พฤศจิกายน 22, 2012, 16:02:59 PM
สอบถามเพิ่มเติมครับ ลองใน CentOS ทำลิงค์ไฟล์ภาษาไทยไม่ได้ครับ
http://192.168.1.231/nurse/ER/การพัฒนาความรูักระบวนการเบาหวาน.pptx

พอจะมีแนวทางการแก้ไขหรือเปล่าครับ... ;D
หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: chk ที่ พฤศจิกายน 22, 2012, 20:42:08 PM
 ;D ลองเปลี่ยนเป็นภาษาต่างประเทศ  น่าจะได้นะ  ;D
หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: nutsuanplu ที่ พฤศจิกายน 23, 2012, 08:31:35 AM
ที่โรงพยาบาลผมก็เป็นครับ IE ไม่ค่อยรองรับเรื่อง html5 เท่าไหร่
ผมเขียน web mail ให้ ก็โดนบ่นว่าโหลดไฟล์ไม่ค่อยได้เลย โหลดมาเป็นไฟล์อะไรก็ไม่รู้
ทั้งๆ ได้ที่ย้ำไว้ว่า ให้เปิดใน google chrome เท่านั้น

ทำไมชอบยึดติดในของเก่าจัง ไม่ยอมรับการเปลี่ยนแปลงสิ่งใหม่ๆ :(

หัวข้อ: Re: สอบถาม การทำลิงค์ Download
เริ่มหัวข้อโดย: nongnine ที่ พฤศจิกายน 24, 2012, 12:47:35 PM
add the following to the /etc/mime.types file and restart apache and the problem should be fixed.

# Added by myname 2009-06-03
application/vnd.ms-word.document.macroEnabled.12                        docm
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/vnd.ms-powerpoint.template.macroEnabled.12                  potm
application/vnd.openxmlformats-officedocument.presentationml.template   potx
application/vnd.ms-powerpoint.addin.macroEnabled.12                     ppam
application/vnd.ms-powerpoint.slideshow.macroEnabled.12                 ppsm   
application/vnd.openxmlformats-officedocument.presentationml.slideshow  ppsx
application/vnd.ms-powerpoint.presentation.macroEnabled.12              pptm
application/vnd.openxmlformats-officedocument.presentationml.presentation       pptx
application/vnd.ms-excel.addin.macroEnabled.12                          xlam
application/vnd.ms-excel.sheet.binary.macroEnabled.12                   xlsb
application/vnd.ms-excel.sheet.macroEnabled.12                          xlsm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet       xlsx   
application/vnd.ms-excel.template.macroEnabled.12                       xltm   
application/vnd.openxmlformats-officedocument.spreadsheetml.template    xltx

ขอบคุณครับ... ใช้ได้แล้วครับ   ;D เยี่ยมมาก 100 Thank ครับ

แบบนี้ใช้ได้ทุก Browser ครับ แก้ที่ต้นเหตุ