Ben, On 5/7/2010 4:28 PM, Asiri Rathnayake wrote: > Hi, > > Caused by: java.io.FileNotFoundException: C:\Program Files > >> (x86)\XWiki\jetty\work\Jetty_0_0_0_0_8080_xwiki__xwiki__5alevh\fcff1e5d-5db9-4c7c-86f3-aa40068177e9\input\D:\Users\bet\Desktop\test.doc >> Are you using Internet Explorer? Me and Asiri have seen this before, but we are unable to reproduce the issue. >> > This error was reported by one other user too, unfortunately I could not > reproduce it. The wired thing is how input path > (D:\Users\bet\Desktop\test.doc) > The import works fine on my side on IE, but the suggested path is 'C-\fakepath\test' :) Ben, could you try another browser?
Florin Ciubotaru > got transferred to server side. I suspect that commons file upload (xwiki > file upload plugin) have an issue where getFileName() function returns file > path instead of file name, however as i said i could not reproduce this. > > Following is the code i use for extracting the name of the uploaded file > (for devs to check): > > <code> > #set($fileUpload=$xwiki.fileupload) > #set($fileName=$fileUpload.getFileName("filePath")) > #if(! $fileName) > {{error}}$msg.get("xe.officeimporter.results.missingfile", > [$goBack]){{/error}} > #else > #set($void=$fileUpload.loadFileList()) > #set($officeFileStream=$fileUpload.fileItems.get(0).inputStream) > #end > </code> > > "filePath" above refers to the file upload input box's name attribute > (html). > > > @Ben: Can you try deleting all the contents of "C:\Program > Files(x86)\XWiki\jetty\work\" directory and redo the import? > > Many thanks for reporting and debugging this issue :) > > - Asiri > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users