ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

How to upload local file to folder in App Server?

keobolo
11 Mar 2011 04:26:55 GMT
11 Mar 2011 04:26:55 GMT

Media media = Fileupload.get();

media==null ?

we must add in zk.xml this code
<system-config>
<disable-event-thread>false</disable-event-thread>
</system-config>

jimmyshiau
14 Mar 2011 20:58:50 GMT
14 Mar 2011 20:58:50 GMT

Hi rohitwadke,
do you mean get the path on client side?

rohitwadke
14 Mar 2011 23:10:03 GMT
14 Mar 2011 23:10:03 GMT

hey Jimmy Shiau

I mean to say is i dont want to use fileupload button..
application user put file path in textbox then upload file in server location... when user put file path of local machine it searches on server side..
it should search file on client machine..

jimmyshiau
20 Mar 2011 21:37:21 GMT
20 Mar 2011 21:37:21 GMT

Hi rohitwadke,
Browser cannot control the file system of client machine. it is a security issue.

vipindhmn87
29 Dec 2011 05:26:45 GMT
29 Dec 2011 05:26:45 GMT

how to upload documents like .pdf, .doc, .txt???

jimmyshiau
29 Dec 2011 07:32:34 GMT
29 Dec 2011 07:32:34 GMT

Hi rohitwadke,
you cannot do that, it has security issue.

mbercian
16 Apr 2012 20:15:28 GMT
16 Apr 2012 20:15:28 GMT

Sorry, I'm new in ZK. I don't understand something, How I know where put the file?
I need upload file but my file is anywhere of my PC, I dont want put the same path to my files upload
What can I do,

thanks in advance

jimmyshiau
4 May 2012 05:03:58 GMT
4 May 2012 05:03:58 GMT

Hi mbercian,
when you upload a file, you will receive a inputstream on server, you can save it in any place you want, if you do know what is inputstream, you can search java io.

1 2