Urgent Please ...............
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   john_k
Posted On:   Wednesday, May 22, 2002 06:30 PM

Hi, I am using jspsmartupload to upload multiple files .......... The code is working fine if the html page is like : Test.html: jspSmartUpload : Sample 2 TestSample.jsp: <%@ page language="java" import="com.jspsmart.upload.*"%> <% // Variables int count=0; // Initialization mySmartUpload.initialize(pageContext);   More>>

Hi,



I am using jspsmartupload to upload multiple files ..........


The code is working fine if the html page is like :



Test.html:





jspSmartUpload : Sample 2

















TestSample.jsp:




<%@ page language="java" import="com.jspsmart.upload.*"%>



<%


// Variables


int count=0;


// Initialization


mySmartUpload.initialize(pageContext);


// Upload


mySmartUpload.upload();


try {


count = mySmartUpload.save("/usr/local/tomcat/webapps");


out.println(count + " file(s) uploaded.");


} catch (Exception e) {out.println(e.toString()); }


%>


The file is not uploading if the html file like:



Test.html:




jspSmartUpload : Sample 2




File1


File2







Just i changed html file and i didn't change anything in jsp


In this case the upload is not working ......


In the text filed i am entering like c:/junk/Testc.jsp (this file is in my local machine so i


enter the complete path of the file )..........


What changes i have to do to work the code even for text field ...........


The code is working in the html form if the type is file ........


But it is not working if the type is text field ...........


What chanages i have to do in jsp page to upload files ...........


Please can any one help to me ..........


I will appriciate for your help ...............




Thanks.

   <<Less
About | Sitemap | Contact