create upload button in html and not show file choosing button and further store an…
- User
create upload button in html and not show file choosing button and further store an excel file in database
- Assistant
To create an upload button in HTML without showing the file choosing button and store an Excel file in a database, you can use the FileReader API along with AJAX to upload the file and send it to the backend for processing. Here's an example:
HTML:
<input type="file" id="fileInput" style="display: none;"> <button id="uploadButton">Upload Excel</button> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>