javascript - 使用表单上传excel文件后如何获取excel工作表的名称
问题描述
我目前正在上传一个包含一张工作表的 excel 文件,我想知道如何提取工作表的名称。
<form id="uploadForm" name="form1" method="post" enctype="multipart/form-data" action="/api/BulkUpload" target="dummyframe" onsubmit="return Validate(this);">
<div></div>
<div id="inputLabel">
<input id="fileinput" name="image1" type="file" />
</div>
<div>
<span class="btn btn-success fileinput-button">
<i class="icon-plus icon-white"></i>
<span>upload file</span>
<input id="submitButton" class="submit" type="submit" value="ok" @*onclick="setTimeout(clearLabel,3000)"*@ />
</span>
</div>
</form>
解决方案
I figured the simplest way was to get the user to enter the name of the sheet on which processing must be done. In the event that the user does not enter a sheet name I default to a hardcoded sheet name in order to run my stored procedure.
推荐阅读
- amazon-web-services - AWS 预算每天会监控多少次账户产生的成本?
- c++ - 计算移动平均线的C++程序
- python - 在python中解析数学表达式
- netsuite - NetSuite UserEvent SuiteScript 2.0 未在支持案例创建时触发
- linux - 用sed中的单词替换可能的短语?
- java - 从java中的URL中提取实时汇率
- c# - 获取 RichTextBox 中的最大线宽
- email - 用于自动通过电子邮件发送站点指标的 SAS 宏中的迭代 %DO LOOP 问题
- java - 使用 Junit4 比较字符串 []
- swift - SwiftUI 从配置文件标签栏项进行导航的最佳方式