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

@@ -13,7 +13,7 @@
<p><strong>Format csv file with headings & data:</strong><br>Name, Description, Address, City, State, Postal Code, Phone, Hours</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 class="text-bold" href="post.php?download_client_locations_csv_template=<?php echo $client_id; ?>">sample csv template</a></div>