on 08-26-2009 5:28 AM
Hi Experts,
I am facing problem while trying to upload a file using FileUpload UI Element to specified path in the deployed DC component.
I tried this for a local wd project using WDDeployableObjectPart , and it's working fine. But coming to DC , it's rainsing exception.
this is the statement which creates an empty file in the resource path.
File ff=new File(WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(),"test.txt"));
if(ff.exists()==false)
ff.createNewFile();
Thanks in advance
Lakshmi Narayana
Hi Lakshmi,
What is the error that u are getting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anand,
Now no exception is coming.. I am able to write to the public folder of deployed DC now.
We have to use getPublicResourcePath instead of getResourcePath for DC.
Here is the statement.
File ff=new File(WDURLGenerator.getPublicResourcePath(wdComponentAPI.getDeployableObjectPart(),"
one.txt"));
if(ff.exists()==false)
ff.createNewFile();
Now I am trying to get the url of this file, but not able to get.
Can anybody suggest me to do so.
Thanks in advance
LakshmiNarayana
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.