当前位置: 代码迷 >> Java Web开发 >> 上传图片有关问题!大家帮帮忙!java.lang.IllegalArgumentException: This path does not exist (1135)
  详细解决方案

上传图片有关问题!大家帮帮忙!java.lang.IllegalArgumentException: This path does not exist (1135)

热度:779   发布时间:2016-04-17 10:24:49.0
上传图片问题!大家帮帮忙!java.lang.IllegalArgumentException: This path does not exist (1135)
1...
function init()
  {
  uploadInit(document.forms[0].companyPic1,document.forms[0].upimg1,document.forms[0].delimg1);
  }


<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  <td width="50%" height="15" align="left" class="cs1"> 请上传企业营业执照副本复印件(加盖公章) 
  <span class="hei12">
  <font color="#FF9933"> </font>
  </span>
  </td>
  <td width="40%" align="left" class="cs1">
  <html:text property="companyPic1" readonly="true" size="25"/>
  </td>
  <td width="20%" align="left" class="cs1">
  <table width="180" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  <td width="70" align="center" valign="middle" class="cs1">
  <input name="upimg1" type="button" value="上传" onClick="addFile(document.forms[0].companyPic1,this,document.forms[0].delimg1);" class="button4"/>
  </td>
  <td width="110" align="left" class="cs1">
  <input name="delimg1" type="button" value="删除" onClick="delFile(document.forms[0].companyPic1,this,document.forms[0].upimg1);" class="button4"/>
  </td>
  </tr>
  </table>

2....
function addFile(obj,dsb,enb)
{
f = window.showModalDialog("upfile.jsp","","dialogHeight:200px;dialogWidth:400px;center:Yes;help:No;resizable:No;status:no","");
  if(f && f != "")
  {
  obj.value = f;
  dsb.disabled = true;
  enb.disabled = false;
  }
}

3....

<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<link rel="stylesheet" href="/css/style.css" type="text/css">
</head>
<body topmargin="15" >

<form name="f1" method=post action="uploadfile.jsp" Enctype="multipart/form-data">
<input type="hidden" name="uploadType" value="<%=request.getParameter("uploadType")%>"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
  <td align=left><font class="font12">添加附件:</font>使用此网页可上载附件。<br>请单击下面的“浏览...”按钮,选择附件。</td>
  相关解决方案