الوصف
A simple, lightweight WordPress plugin that enables the uploading of Lottie animations (JSON files) to your WordPress Media Library.
Features
- JSON File Support: By default, WordPress restricts the uploading of
.jsonfiles for security reasons. This plugin safely addsjsonto the allowed upload MIME types. - Accurate File Typing: Ensures that WordPress correctly validates and interprets Lottie files as
application/jsonduring the upload check process. - Content Validation: Before trusting a
.jsonupload, the plugin checks that the file actually parses as valid JSON, so a renamed file with a different (and disallowed) content type is still blocked.
التنصيب
Manual Installation
- Go to your WordPress installation directory and navigate to
wp-content/plugins/ - Create a folder named
file-uploader-for-lottie-animations - Place the
file-uploader-for-lottie-animations.phpfile inside this newly created folder - Log in to your WordPress dashboard
- Navigate to the Plugins menu
- Find Lottie File Uploader in the list and click Activate
Setup via ZIP file
- Archive the
file-uploader-for-lottie-animations.phpfile into a.zipfile (e.g.,file-uploader-for-lottie-animations.zip) - Log in to your WordPress dashboard
- Navigate to Plugins > Add New
- Click the Upload Plugin button at the top of the page
- Select the
.zipfile you created and click Install Now - After installation, click Activate Plugin
الأسئلة المتكررّة
-
Does it work with third-party Lottie blocks?
-
Yes! Because the
.jsonfiles are properly uploaded into the WordPress Media Library with the correctapplication/jsonMIME type, you can use the file URLs in any third-party Lottie block or page builder widget. -
Is this compatible with WordPress 7.1?
-
Yes. It has been reviewed against WordPress 7.1 and uses only the standard
upload_mimesandwp_check_filetype_and_extfilters, which are unchanged in this release.
المراجعات
لا توجد مراجعات لهذه الإضافة.
المساهمون والمطوّرون
“File Uploader for Lottie Animations” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في هذه الإضافة.
المساهمونترجمة ”File Uploader for Lottie Animations“ إلى لغتك.
مُهتم بالتطوير؟
تصفّح الشفرة، تحقق من مستودع SVN، أو الاشتراك في سجل التطوير بواسطة RSS.
سجل التغييرات
1.1
- Confirmed compatibility with WordPress 7.1.
- Raised minimum required PHP version to 7.4, matching WordPress core’s own current minimum.
- Added a content check so
.jsonuploads are verified as valid JSON before being accepted, rather than trusted by extension alone. - Added
Requires at leastandRequires PHPheaders to the plugin file itself so WordPress can flag incompatible sites before activation.
1.0
- Initial release.
