Expand my Community achievements bar.

SOLVED

fileuploadfield

Avatar

Level 4

I created component for image upload to DAM[img]Screen Shot 2015-07-21 at 12.07.21 AM.png[/img], i used fileuploadfield xtype for upload option,

I can select images and other files, but am getting value as fakepath.

How i can fix this and any idea how i can retrive value from the dialog for fileuploadfield.

Please help me.

1 Accepted Solution

Avatar

Correct answer by
Level 10

See this article on how to write server code to store an uploaded asset to a path in the DAM. Your server code should be using AssetManager - as discussed in this article: 

Uploading files to Adobe Experience Manager DAM using AssetManager API

View solution in original post

3 Replies

Avatar

Level 4

Shekhar_Dhiman wrote...

Hi There,

Thanks for reaching out to Adobe Community.

Please go through the below docs and see if they are of any help:

https://helpx.adobe.com/experience-manager/kb/creating-cq-widget-supports-image.html

https://helpx.adobe.com/experience-manager/using/creating-custom-xtype.html

https://helpx.adobe.com/experience-manager/using/creating-gallery-3d.html

Thanks!

 

Thanks Shekhar

Our idea, is We need to select path using pathfield component, based on selection path i need to store image in that path.

I created component using fileuploadfield, but am not sure how i can retrive values .

and it's showing fakepath in Fileuploadfield dialog.

Avatar

Correct answer by
Level 10

See this article on how to write server code to store an uploaded asset to a path in the DAM. Your server code should be using AssetManager - as discussed in this article: 

Uploading files to Adobe Experience Manager DAM using AssetManager API