问题描述
如何使用jquery.i使用以下代码保存项目文件夹中的上传文件名
函数文件路径()
{
var file = $('#fileupload1')。val();
var FileName = file.substring(file.lastIndexOf('\\')+ 1);
var savedname ='../LocalImagePaths/'+ FileName;
alert(FileName);
}
文件名获取但如何保存在folder.my文件夹名称:LocalImagePaths我想在LocalImagePaths中保存FileName
文件夹请帮助任何一个。
< asp:FileUpload ID =fileupload1runat =serverClientIDMode =Staticonchange =filepath(); />
How to save uploaded file name in project folder using jquery.i am using below code
function filepath()
{
var file = $('#fileupload1').val();
var FileName = file.substring(file.lastIndexOf('\\') + 1);
var savedname = '../LocalImagePaths/' + FileName;
alert(FileName);
}
file name getting but how to save in folder.my folder name:"LocalImagePaths" i want to save FileName in "LocalImagePaths"
folder please help any one.
<asp:FileUpload ID="fileupload1" runat="server" ClientIDMode="Static" onchange="filepath();" />
这篇关于如何使用jquery在项目文件夹中保存上传的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!