SVG Upload (Safe) is the PLUS module in WP Quick Tools that lets authorized users upload SVG files through the normal WordPress media workflows. Before saving a file to uploads, it applies mandatory sanitization based on a limited set of static SVG elements and attributes.
It is designed for logos, icons, and simple vector illustrations. Scripts, styles, animations, and external resources are not part of the allowed format. Sanitization may change the appearance of the artwork: keep the original and always check the uploaded file.
Set the required capability, preferably keeping manage_options. The user must also have the normal upload_files permission.
The module filters the temporary file before WordPress moves it into public uploads. Invalid files or files that cannot be processed are blocked.
The filter keeps a subset of SVG shapes, text, and internal references. Disallowed elements and attributes are removed: do not expect all the features of a complex SVG to be retained.
Sanitization is mandatory and cannot be disabled in the module. This check does not eliminate the need to use files from trusted sources.
Export a simple SVG from a trusted source and keep an original copy. Avoid scripts, external resources, and animations.
In WP Quick Tools, open SVG Upload (Safe), unlock it if necessary, and enable it.
Check the Required capability. manage_options normally limits use to administrators; do not broaden it without a specific need.
Save the parameters, then upload the SVG to the media library with an authorized user. The module’s limit is 5 MiB, in addition to any server limits.
Check the colors, shapes, text, and proportions of the resulting file. Disallowed elements may have been removed.
Insert the file where intended and check the result on desktop and mobile. If the artwork is altered, simplify the original and try again.
Users who have both upload_files and the capability configured in the module. The initial and recommended value is manage_options.
No. It is a WordPress permission, such as manage_options. Do not simply enter administrator or editor assuming they are equivalent.
No. In this version, it is mandatory even if the configuration sent to the server is modified.
Simple static SVG files, such as logos and icons. Scripts, CSS, animations, and external resources are not supported by the filter.
The filter removes elements and attributes that are not in the allowed set. The file may therefore look different from the original.
The module blocks files over 5 MiB. Any lower limits imposed by WordPress, PHP, or the hosting provider still apply.
No. It operates in WordPress upload and sideload workflows. It does not retrospectively scan the media library.
These features are outside the allowed subset and are removed, or the file may be blocked if it cannot be processed.
No. The filter allows some references within the document, not external resources. Check the file after cleaning.
Check permissions, size, and XML validity. The PHP DOMDocument extension is also required; a processing or write error blocks the upload.
It may use styles or elements removed by sanitization. Export a simpler static version and visually check the result.
No. It reduces the content to the defined subset, but does not replace trust in the source, updates, and the site’s other security controls.
No. Existing files remain in the library. The module neither deletes them nor restores elements removed during sanitization.