How to Fix SharePoint Image Gallery Errors After Uploading Images
Question details
The user is encountering an error when attempting to edit a SharePoint Image Gallery web part after having successfully uploaded images to it.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Editing a previously configured Image Gallery web part on a SharePoint site page.
- Observed behavior
- The Image Gallery displays images correctly at first, but throws an error when the user re-enters edit mode for the web part.
Verify that your image files are in a supported web format (such as JPEG, PNG, or GIF) and ensure they do not exceed SharePoint's individual file size limits.
Upload Images via a SharePoint Document Library
Uploading images to a dedicated Document Library before adding them to the web part provides stable file links and prevents editing errors.
Directly uploading images into the web part can sometimes cause temporary link caching issues. By hosting the files in a SharePoint library first, you ensure the web part can consistently locate the source files during edit mode.
Navigate to your SharePoint site's Document Library (or create a new library for images) and upload the image files you want to display.
Return to the SharePoint page containing the Image Gallery and click the 'Edit' button at the top right of the screen.
Select the Image Gallery web part, click the 'Edit web part' pencil icon, and choose to add images. Instead of clicking 'Upload', select the 'Site' or 'Recent' tab.
Browse to the Document Library where you uploaded the files, select your images, and click 'Republish' or 'Save as draft' to secure your changes.

Re-add the Web Part and Clear Browser Cache
Corrupted web part configurations or stale browser cache can cause interface glitches in SharePoint edit mode.
Try WPS Office for Seamless Document Management
While troubleshooting SharePoint web part errors, consider using WPS Office for your broader document management needs. It provides a lightweight, highly compatible, and free alternative to Microsoft Office, allowing you to edit documents without relying heavily on complex browser-based environments.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install the Software: Run the downloaded installer file and follow the quick on-screen instructions to set up the software.
- 3. Open Your Documents: Launch WPS Office and instantly open your existing Word, Excel, PowerPoint, or PDF files to start working.

Frequently Asked Questions
Why does the Image Gallery error only affect guest users?
Guest accounts may lack the necessary permissions to view the underlying SharePoint library where the images are stored. Ensure the document library hosting the images inherits the correct site permissions or explicitly grants access to external guests.
What is the maximum file size for images in a SharePoint Image Gallery?
While SharePoint allows large file uploads generally, it is highly recommended to keep individual web images under a few megabytes (MB) to prevent page loading delays and web part rendering timeouts.
Does the browser choice affect SharePoint page editing?
Yes, browser extensions or aggressive caching can interfere with SharePoint's modern page editor. Microsoft Edge or Google Chrome, especially in an InPrivate/Incognito window without extensions, are recommended for troubleshooting.




