Skip to Content
0
Former Member
Aug 26, 2009 at 04:28 AM

uploading file into DC

22 Views

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