File Uploader for Lottie Animations

Описание

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 .json files for security reasons. This plugin safely adds json to the allowed upload MIME types.
  • Accurate File Typing: Ensures that WordPress correctly validates and interprets Lottie files as application/json during the upload check process.
  • Content Validation: Before trusting a .json upload, 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

  1. Go to your WordPress installation directory and navigate to wp-content/plugins/
  2. Create a folder named file-uploader-for-lottie-animations
  3. Place the file-uploader-for-lottie-animations.php file inside this newly created folder
  4. Log in to your WordPress dashboard
  5. Navigate to the Plugins menu
  6. Find Lottie File Uploader in the list and click Activate

Setup via ZIP file

  1. Archive the file-uploader-for-lottie-animations.php file into a .zip file (e.g., file-uploader-for-lottie-animations.zip)
  2. Log in to your WordPress dashboard
  3. Navigate to Plugins > Add New
  4. Click the Upload Plugin button at the top of the page
  5. Select the .zip file you created and click Install Now
  6. After installation, click Activate Plugin

Часто задаваемые вопросы

Does it work with third-party Lottie blocks?

Yes! Because the .json files are properly uploaded into the WordPress Media Library with the correct application/json MIME 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_mimes and wp_check_filetype_and_ext filters, 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 .json uploads are verified as valid JSON before being accepted, rather than trusted by extension alone.
  • Added Requires at least and Requires PHP headers to the plugin file itself so WordPress can flag incompatible sites before activation.

1.0

  • Initial release.