Coral Fileupload not saving fileNameParameter value | Community
Skip to main content
AmirYamin
New Participant
Nov 7, 2019 3:11 PM UTC

Coral Fileupload not saving fileNameParameter value

I am working on a component that requires an image to be uploaded using file upload widget inside a coral multi-field. File Upload is working pretty good but it's not saving the fileNameParameter field. The file name is necessary in my case. Anyone can help me where I'm wrong

Following is the dialog configuration:

<icon

    jcr:primaryType="nt:unstructured"

    sling:resourceType="cq/gui/components/authoring/dialog/fileupload"

    autoStart="{Boolean}false"

    allowUpload="{Boolean}false"

    class="cq-droptarget"

    fileNameParameter="./iconName"

    fileReferenceParameter="./iconReference"

    mimeTypes="[image/png,image/svg+xml]"

    multiple="{Boolean}false"

    name="./icon"

    title="Choose Sign In Icon Asset"

    useHTML5="{Boolean}true"/>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

arunpatidar
New Participant
Nov 7, 2019 11:29 PM UTC

Try to add one more property

uploadUrl

String

${suffix.path}

Translate
Arun Patidar
AmirYamin
AmirYaminAuthor
New Participant
Nov 8, 2019 7:45 AM UTC

I have asked to save file name not upload url, I'm already getting file src through fileReferenceParameter

Translate
arunpatidar
New Participant
Nov 8, 2019 6:39 PM UTC

Hi,

when you upload the file, filename is saved in the name property.

When you reference file from DAM then file path is stored in fileReferenceParameter property

fileNameParameter is used to shows file in fileupload dialog.

fileNameParameter value never stored.

Translate
Arun Patidar