Thanks again for your help I deleted the contents of "C:\Program Files(x86)\XWiki\jetty\work\" It doens't solve the problem. BUT indeed, I was with IE and it's working with Firefox. For the following code, I didn't understand where I can test it... I would like to solve this problem with IE... <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> Florin Ciubotaru wrote:
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
- Hide quoted text -
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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://xwiki.475771.n2.nabble.com/Configuring-Open-Office-server-tp5018359p5... Sent from the XWiki- Users mailing list archive at Nabble.com.