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

SOLVED

Will spaces in filenames cause problems for AEM?

matthewh3000790
Level 2
Level 2

Hello.

We have users who are uploading files and creating directories with spaces in their names. We discovered the existence of these files on dispatchers while troubleshooting chronic caching problems on our AEM 6.0 SP1 farm.

Ideally we would like to find some way to prevent people from uploading such content but for now I only seek confirmation that files and paths containing whitespace are officially a no-no for AEM environments.

Thanks.

1 Accepted Solution
bsloki
Correct answer by
Community Advisor
Community Advisor

There might not be an issue in storing but you may face some issues while retrieving programmatically which space and %20 etc. Its always a best practice to use '-' between the words if needed.

View solution in original post

2 Replies
leeasling
Level 8
Level 8

I don't believe that folders and files with spaces in the name are a no-no.  I performed a quick test with an image and a PDF in the DAM, both with whitespace in the folder and file name and i was successfully able to link to each with no issue.

bsloki
Correct answer by
Community Advisor
Community Advisor

There might not be an issue in storing but you may face some issues while retrieving programmatically which space and %20 etc. Its always a best practice to use '-' between the words if needed.

View solution in original post