HTML form upload for ODT files / MIME type for *.odt -


i'm looking html form upload odt-files. need know parameter accept.

<form method="post" action="upload.php" >       <input type="file" name="file_upload" accept="" />       <button type="submit">upload</button> </form> 

with search in stackoverflow found have define correct mime type.

for odt mime type application/vnd.oasis.opendocument.text


the html code has that:

<form method="post" enctype="multipart/form-data" action="upload.php" >       <input type="file" name="file_upload"               accept="application/vnd.oasis.opendocument.text" />       <button type="submit">upload</button> </form> 

Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -