Hi everybody,
can some help jsp form file upload server side script . i need with a Dhtmlxform file uploader
with demo example.
I will be thankful.
Hi everybody,
can some help jsp form file upload server side script . i need with a Dhtmlxform file uploader
with demo example.
I will be thankful.
Hi
dhtmlx.com/docs/products/dht … _uploader/ - online samples with form uploader.
If you have PRO 3.5 version - you have php scripts in the samples folder.
i need example in jsp
Thanks once again
Sorry we don’t have ready samples in jsp.
can somebody help me to create jsp example i can pay for it
Hi,
here is an example.
Sample uses commons-io.jar and commons-fileupload.jar at server side.
dhtmlxform_item_upload.zip (1.32 KB)
Hi radyno,
Thank you Very much for Jsp script.
once i test it if i have any problem i will get backup to you
Once again thank you Very Much
With Regards,
Arun
Hi radyno,
It is show the flash mode uploading % but on the server side file is not getting uploaded. please help me fix this problem.
I have attached the complete Demo.
please the needed script in the Demo
localhost:8080/JavaformUpload/menu9/menu1.jsp
Need it working ASAP. Please help me
JavaformUpload.rar (1.83 MB)
Hi,
you should uncomment the follow code in dhtmlxform_item_upload.jsp:
// Write to file
File f=new File("absolute path to file" + filename);
OutputStream fout=new FileOutputStream(f);
byte buf[]=new byte[1024];
int len;
while((len=filecontent.read(buf))>0) {
fout.write(buf,0,len);
filesize+=len;
}
fout.close();
and specify absolute path to target directory.
It was commented for sample security.
Hi radyno,
Thank you once again, I am able to upload the data. but i am unable to send the filename and update to database. can you please help me how to send the form data and file name of the upload file and request.getParameter method is not capturing the file name. please me with sample code to post data via xml
Thank you,
Arun
Hi,
at server side you have a variable filename, which is a name of file.
It’s sent to client in response.
Could you describe more in details, what you want to do after file is saved?
Hi ,
Sending the form details
to updated in the database. i need the path of filename to be updated in the database
userForm.send("saveData11.jsp?id="+sId,"post",function(xml){
});
I have attached the server side saveData11.jsp.
i am using request.getParameter from filename and path of the file. it is showing Null value.
can you please check the whether i have used correct post method filename
Thank you,
Arun
saveData11.rar (666 Bytes)
Hi,
here are some details about format of data which form with uploader sends to server:
[name][r/s][ind] where “name” - form item name, r/s - real/server file name, ind - file index
myFiles_r_* - real file name
myFiles_s_* - server file name
myFiles_count - count of uploaded files
so for your case you should take myfiles_r_0 (real file name), myfiles_s_0 (saved at server file name), not “filename” as you’re using for now.
Hi,
Thank you,
I have getting the the filename posted
Thank you once again.
Thank you,
Arun
Hi,
We need to remove the whitespace in the filename while uploading the file to server.
Please help with sample code in uploading script
Thank you,
With Regards,
Arun