Check file is CSV when importing assets

This commit is contained in:
Marcus Hill
2022-01-09 15:34:28 +00:00
parent 7a5f8b425f
commit 33d76f556b
2 changed files with 35 additions and 13 deletions

View File

@@ -8,12 +8,12 @@
</button>
</div>
<div class="modal-body bg-white">
<p>Format: name, type, make, model, serial, os</p>
<p>Format: CSV file with headings & data: name, type, make, model, serial, os</p>
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
<div class="form-group">
<input type="file" class="form-control-file" name="file">
<input type="file" class="form-control-file" name="file" accept=".csv">
</div>
</div>