Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Can we change default error message of fileupload sizelimit?

Avatar

Avatar
Validate 1
Level 2
arvindk091986
Level 2

Likes

2 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
arvindk091986
Level 2

Likes

2 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
arvindk091986
Level 2

26-08-2019

Hi everyone,

I am here applying a sizelimit property to the assets uploaded in DAM, in Touch UI. Is there a way for us to change the error message displayed on alert box? The current default message displayed is more generic.

Appreciate your help.

1821555_pastedImage_0.png

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

26-08-2019

I just checked in 6.4, such a message is coming from /libs/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js/fileupload.js

You can create an overlay of fileupload.js file under apps.

Regards,

Vishu

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

237 likes

Total Posts

251 posts

Correct Reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

237 likes

Total Posts

251 posts

Correct Reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
Theo_Pendle
MVP

27-08-2019

I think what Vishu means is that you overlay the JS file. To do so, take the file at

/libs/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js/fileupload.js

Copy it to

/apps/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js/fileupload.js

Then make your modifications.

When AEM fetches fileupload.js, it will first look under /apps and if it does not find anything, then under /libs The concept is explained here: Overlays

Avatar

Avatar
Validate 1
Level 2
arvindk091986
Level 2

Likes

2 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
arvindk091986
Level 2

Likes

2 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
arvindk091986
Level 2

27-08-2019

Vish.dhaliwal​ - I believe we cannot overlay the clientlibs, rather can override by creating another clientlib in my project. Please correct me if I am wrong. I tried creating a clientlib with the category "dam.gui.coral.fileupload", it still picks up the /libs/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js/fileupload.js and not my custom file located at /etc/designs/myproject/clientlib-dam-coral/fileupload/fileupload.js Is there anything missing, that you might think of?