In AEM 6.4, fileupload coral3 resource-type not working and neither backward-compatible

Avatar

Avatar
Give Back 10
Level 3
karanmahi
Level 3

Likes

15 likes

Total Posts

73 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile

Avatar
Give Back 10
Level 3
karanmahi
Level 3

Likes

15 likes

Total Posts

73 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
karanmahi
Level 3

10-02-2019

In AEM 6.4, fileupload coral 3 resource-type (/libs/granite/ui/components/coral/foundation/form/fileupload) does not have the property “fileReference” which used to store the location of file in DAM (https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/granite-ui...). When I looked at coral2 resource type (/libs/granite/ui/components/foundation/form/fileupload), I could find that property. So, while migrating to 6.4 with coral3, image component stopped working, because backend code is looking for “fileReference" property which is not found now. How to resolve this issue?

I looked at the OOTB AEM core image component at this location (/apps/core/wcm/components/image/v1/image) and got surprised that its using “cq/gui/components/authoring/dialog/fileupload”, instead of coral-3 resource type (/libs/granite/ui/components/coral/foundation/form/fileupload). All other nodes in this component are using coral-3 resource-type, but not the fileupload. Is there any reason for that?

What is the recommended approach now -

  1. First of all, coral3 resource-type (/libs/granite/ui/components/coral/foundation/form/fileupload) is not working. If somehow, we could make it work, then also, we have to refactor the backend code completely and re-do the authoring as properties are changed as mentioned above. This is a huge effort because we have huge content in production which is using image component.
  2. Can we keep it to coral 2 resource-type? (/libs/granite/ui/components/foundation/form/fileupload)
  3. Should we keep it to “cq/gui/components/authoring/dialog/fileupload”, as implemented in OOTB image component?

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

10-02-2019

that is a good question for the team. I will pass this question to them.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

11-02-2019

I passed this question to the team - the reply:

Hey

1. Yes I see the core image component was not upgraded to use coral 3 file upload - /apps/core/wcm/components/image/v2/image/cq:dialog/content/items/tabs/items/asset/items/columns/items/column/items/file

Raise a core components support ticket so it gets fixed.

They can use coral 2 file upload, its not deprecated afaik

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

11-02-2019

As the reply suggests - you found a bug. Please open a support ticket so it gets fixed.

Avatar

Avatar
Give Back 10
Level 3
karanmahi
Level 3

Likes

15 likes

Total Posts

73 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile

Avatar
Give Back 10
Level 3
karanmahi
Level 3

Likes

15 likes

Total Posts

73 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
karanmahi
Level 3

11-02-2019

smacdonald2008 - How about the backward compatibility in AEM 6.4? fileupload coral 3 resource-type (/libs/granite/ui/components/coral/foundation/form/fileupload) does not have the property “fileReference” which used to store the location of file in DAM. How to handle this because the old code looks for that property?

Avatar

Avatar
Give Back 10
Level 3
karanmahi
Level 3

Likes

15 likes

Total Posts

73 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile

Avatar
Give Back 10
Level 3
karanmahi
Level 3

Likes

15 likes

Total Posts

73 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 5
View profile
karanmahi
Level 3

12-02-2019

Avatar

Avatar
Validate 50
Level 6
cquser1
Level 6

Likes

75 likes

Total Posts

313 posts

Correct reply

15 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Give Back 50
View profile

Avatar
Validate 50
Level 6
cquser1
Level 6

Likes

75 likes

Total Posts

313 posts

Correct reply

15 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Give Back 50
View profile
cquser1
Level 6

05-03-2019

Hi karanmahi​,

By any chance did you get this to work. Have a similar requirement.

Any thoughts/reference will be really helpful.

Avatar

Avatar
Give Back
Level 1
amitshukla753
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile

Avatar
Give Back
Level 1
amitshukla753
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile
amitshukla753
Level 1

12-03-2019

Hi smacdonald2008

I am also facing the same issue , do we have any alternative  now ?

Thanks