Import CSV - Check file uploaded

Check the file was uploaded when importing a CSV. Can probably convert this into a function at a later date.
This commit is contained in:
wrongecho
2024-11-14 11:51:39 +00:00
parent e4f618c150
commit 7a561a8c2e
10 changed files with 52 additions and 12 deletions

View File

@@ -14,7 +14,7 @@
<p><strong>Format csv file with headings & data:</strong><br>Name, Description, Type, Make, Model, Serial, OS, Assigned To, Location</p>
<hr>
<div class="form-group my-4">
<input type="file" class="form-control-file" name="file" accept=".csv">
<input type="file" class="form-control-file" name="file" accept=".csv" required>
</div>
<hr>
<div>Download <a href="post.php?download_client_assets_csv_template=<?php echo $client_id; ?>">sample csv template</a></div>