Forum Discussion
Prevent Image Gallery web part from appending a prefix to each uploaded filename?
This should be a simple question but its solution eludes me.
My client has a group of images they want to upload via the Image Gallery web part on a modern SharePoint page. They've been named with in the format of "<name - nnn>" where "nnn" is a in incremental order. The thinking was that when we upload these files, they will sort either the filename or creation date; either of which should keep the photos in order. They don't.
When I look in the site assets for the page (a "news post") I created I noticed that the files have a (seemingly) random prefix attached to them that then throws out my order.
I could rename the files (get rid of the prefix) but I think I'd still have to manually order them within the web part itself.
Am I correct in my assumptions? Am I missing something? Am I only one who's noticed this?
1 Reply
- This is actually very strange and it should happen this behavior where a prefix is added to your files...I have just double checked in the Site Assets (the one you are using) document library on a modern site and when I upload some images there, I don't have that prefix issue. In regards of the ordering question, the default order applied in the document library is by file name what means images are alphabetically ordered so if you need a specific order you will need to manually apply it