Web

ปัญหาเดิมๆ ของการทำแอพลิเคชั่นบนเว็บคือการที่ซอฟต์แวร์ไม่สามารถเข้าถึงไฟล์ใดๆ ในเครื่องได้โดยตรง เช่น Picasaweb ก็ไม่มีทางอัพโหลดภาพทีละโฟลเดอร์ขึ้นเว็บได้ โดยตัว IE และ Firefox นั้นต่างก็มีความพยายามแก้ปัญหานี้ด้วยการเปิด API เฉพาะให้สามารถเขียนจาวาสคริปต์ให้เข้าถึงไฟล์ในเครื่องลูกข่ายกันได้แล้ว แต่การพัฒนาที่กระจัดกระจายก็ทำให้นักพัฒนาต้องระวังในการใช้งานกัน

ทาง W3C ได้เปิดเผยร่างมาตรฐาน File API ที่มีการเสนอขี้นมาให้เป็นมาตรฐานกลางร่วมกันทุกเบราวเซอร์ เพื่อให้นักพัฒนาจาวาสคริปต์สามารถเข้าไปอ่านไฟล์ในเครื่องได้

API นี้จะเปิดให้อ่านได้อย่างเดียวเท่านั้น โดยเข้าใจว่าเพื่อความปลอดภัยของเครื่องลูกข่าย อย่างไรก็ดีหากมีช่องโหว่จริง API นี้ก็อาจจะนำไปสู่การขโมยข้อมูลจากเครื่องของเราไปในอนาคต

ที่มา - ArsTechnica, W3C

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

ทำไมเพึ่งจะมาร่างมาตรฐานนี้กันตอนนี้!? (หรือยังดีกว่าไม่มีมาตรฐานเลยหว่า??)

ป.ล. "เข่ียน" ย่อหน้าแรกมีไม้เอกเกินมา ส่วน "บราวเซอร์" ย่อหน้าสองสระเอตกไปครับ

แก้แล้วนะครับ

ผมว่ามันไม่แปลกครับที่มาตรฐานจะไล่ตามหลัง อย่าง Persistent Storage ผมก็เห็น google จะผลักเป็นมาตรฐานเหมือนกัน (แต่โชว์ด้วย Gears ก่อน) หรือกระทั่ง rounded-corner ทุกวันนี้หลายเบราวเซอร์ที่รองรับโดยไม่มีมาตรฐานกลาง

ก็จริงครับ หลายอย่างก็ใช้กันจนเป็นมาตรฐานด้วยซ้ำไป แต่อดสงสัยไม่ได้ว่าทำไมทิ้งไว้เนิ่นนานพอควรก่อนที่จะมาผลักดันเป็นมาตรฐาน File API นะครับ

เนิ่นนานแค่ไหน ขึ้นกับผู้ผลิตว่าจะอยากเสียเวลามาเขียนมาตรฐาน และพยายามผลักดันเข้า W3C ตลอดจนโน้มน้าวให้ผู้ผลิตรายอื่นๆ มาทำความสามารถเดียวกันแค่ไหน (อย่าง Gears นี่ผมคุ้นๆ ว่าเร็วมาก implementation ออกก่อนมาตรฐานไม่นาน)

มีประเด็นสำคัญคือ

  1. มันไม่ผิดที่จะทำฟีเจอร์นอกมาตรฐาน ผมอาจจะอยากใส่ฟีเจอร์ ABC ลงไปในเบราว์เซอร์โดยไม่สนใจว่าใครจะทำตาม ไม่มีมาตรฐานก็ช่างมัน ผมจะทำของผม อันนี้ก็ไปว่ากันไม่ได้
  2. มันขึ้นกับคนทำเว็บ ว่าจะใช้ฟีเจอร์นั้นหรือไม่ ผมอาจจะนิยมชมชอบให้ลูกค้าของผมใช้เบราว์เซอร์สักยี่ห้อเท่านั้น ผมก็ทำเว็บโดยซัพพอร์ตยี่ห้อเดียวได้เหมือนกัน (นึกถึงยุค Best Viewed with XXX)

นึกขึ้นมาได้ อันนี้ต้องยกเครดิตให้เขาเลยละ ใช้มาตั้งแต่คำว่า AJAX ยังไม่เกิด ตอนนั้นรู้สึกว่า Microsoft นี่เทพจริงๆ

กังวลเรื่อง Security เหมือนกันแฮะ

ถ้าเกิดว่ามีสคริปท์บนเวปแอบมาขโมยไฟล์ในเครื่องเราไปโดยที่เราไม่รู้ล่ะ ?

ความคิดเห็น :

ผมว่า Browser ควรจะมี ContentFolder ที่ชัดเจนว่า "ทุกๆเว็บอ่าน/เขียน ไฟล์(เฉพาะ)ในโฟลเดอร์นี้ได้"
คล้ายๆคุกกี้ที่เว็บอื่นอ่านได้
และสามารถสร้างโฟลเดอร์รองของเว็บนั้นได้
สั่ง Hidden จากเว็บอื่นได้(แต่ไม่ Hidden กับเจ้าของเครื่อง) และ execute โดย OS ไม่ได้

อะไรแนวนี้น่ะครับ