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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -