How can we restrict any file to upload into damadmin in a particular folder in touch UI?

Avatar

Avatar
Validate 1
Level 2
GauravKumar
Level 2

Likes

4 likes

Total Posts

11 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
GauravKumar
Level 2

Likes

4 likes

Total Posts

11 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
GauravKumar
Level 2

21-06-2017

Hi guys,

I want to upload only pdfs in my folder as under dam/test in touch UI and restrict to other files like xml,doc etc. I have tried that at this path /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/fileupload I have add a property mimyType= application/pdf but the problem is that because of this property, restriction is available for all folder but I want only a particular folder.

So can anyone please help me for this.

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

21-06-2017

There is a similar thread there: Restrict file uploads by size & type in DAM upload dialog

The best way to restrict a file is to write a custom Sling Servlet as mentioned in that thread.

Avatar

Avatar
Validate 1
Level 2
GauravKumar
Level 2

Likes

4 likes

Total Posts

11 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
GauravKumar
Level 2

Likes

4 likes

Total Posts

11 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
GauravKumar
Level 2

21-06-2017

This is fine but my requirement is that when we go to the dam console in touch UI and we click on create button and then file at that time I want that I will be able only pdfs files not other type of file. And as I already discuss that when I add the property mimeType = application/pdf on the fileupload node, then I am able to select only pdfs but using this approach, this restriction will be for every folder But I want this only for my folder.