Improve MIME type detection (fixes #279) (#281)

* Specify which application file types are allowed

* Attempt two

* attempt 3

* Update version edit too

good thing these commits will be squashed!

* Fix warnings
This commit is contained in:
Emma
2021-07-11 12:05:21 -04:00
committed by GitHub
parent 9b4d58cfe8
commit be3ed7d380
2 changed files with 9 additions and 2 deletions

View File

@@ -93,7 +93,7 @@
upload multiple.
</span>
<FileInput
accept="application/*"
accept=".jar,application/java-archive,application/x-java-archive"
multiple
prompt="Choose files or drag them here"
@change="updateVersionFiles"

View File

@@ -131,7 +131,14 @@
</a>
</div>
</div>
<FileInput v-if="currentMember" class="file-input" @change="addFiles" />
<FileInput
v-if="currentMember"
accept=".jar,application/java-archive,application/x-java-archive"
multiple
prompt="Choose files or drag them here"
class="file-input"
@change="addFiles"
/>
</div>
</div>
</template>