cancel
Showing results for 
Search instead for 
Did you mean: 

Upload ajax file using nxu:inputFile not working

geekonspace
Star Contributor
Star Contributor

Hello, there is a way upload files with ajax using your "nxu:inputFile" tag inside a form like this:

<h:form>
<a4j:include viewId="/wizard/wstep1.xhtml" />
</h:form>

In "wstep1.xhtml" I show my nuxeo document and it has metadata "file:content" but when I select a file, it is erased and it not is upload

1 ACCEPTED ANSWER

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Hi,

Your form needs to specify enctype="multipart/form-data" for the uploaded files to be taken into account.

You cannot use a nxu:inputFile tag inside an ajax form (a4j:form) as upload of binary content is is not supported in this case.

You can also lookup the rich:fileUpload component (used on the "Files" tab by default).

View answer in original post

2 REPLIES 2

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Hi,

Your form needs to specify enctype="multipart/form-data" for the uploaded files to be taken into account.

You cannot use a nxu:inputFile tag inside an ajax form (a4j:form) as upload of binary content is is not supported in this case.

You can also lookup the rich:fileUpload component (used on the "Files" tab by default).

Thanks, I will try using rich component and seam component UploadItemHolder

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.