Accept general text/* files on post import

This fixes an issue with Safari not allowing users to select *.md files.

Closes #334
pull/450/head
Matt Baer 4 years ago
parent 0c7aba1f53
commit f8888df746
  1. 2
      templates/user/import.tmpl

@ -29,7 +29,7 @@
<div class="formContainer"> <div class="formContainer">
<form id="importPosts" class="prominent" enctype="multipart/form-data" action="/api/me/import" method="POST"> <form id="importPosts" class="prominent" enctype="multipart/form-data" action="/api/me/import" method="POST">
<label>Select some files to import: <label>Select some files to import:
<input id="fileInput" class="fileInput" name="files" type="file" multiple accept="text/markdown, text/plain"/> <input id="fileInput" class="fileInput" name="files" type="file" multiple accept="text/*"/>
</label> </label>
<input id="fileDates" name="fileDates" hidden/> <input id="fileDates" name="fileDates" hidden/>
<label> <label>

Loading…
Cancel
Save