Changeset 3239220
- Timestamp:
- 02/12/2025 09:28:43 AM (14 months ago)
- Location:
- twg-media-file-size-column
- Files:
-
- 12 added
- 2 deleted
- 2 edited
-
tags/1.0/assets (added)
-
tags/1.0/assets/css (added)
-
tags/1.0/assets/css/admin-style.css (added)
-
tags/1.0/assets/js (added)
-
tags/1.0/assets/js/admin-script.js (added)
-
tags/1.0/readme.txt (modified) (1 diff)
-
tags/1.0/twg-media-file-size-column.php (added)
-
tags/1.0/twgp-media-upload-restrictions.php (deleted)
-
trunk/assets (added)
-
trunk/assets/css (added)
-
trunk/assets/css/admin-style.css (added)
-
trunk/assets/js (added)
-
trunk/assets/js/admin-script.js (added)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/twg-media-file-size-column.php (added)
-
trunk/twgp-media-upload-restrictions.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
twg-media-file-size-column/tags/1.0/readme.txt
r3239216 r3239220 1 === TWGP Media Upload Restrictions === 2 Contributors: Deepanker 3 Author: Deepanker 4 Author URI: https://thewpguides.com 5 Tags: media, upload restrictions, file size limit, image resolution, file format restriction 6 Requires at least: 5.0 7 Tested up to: 6.7 8 Requires PHP: 7.4 9 Stable tag: 1.0 10 License: GPL2 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html 12 13 Restrict media uploads based on file size, image resolution, and allowed formats. A simple and lightweight plugin to enhance WordPress media upload security. 1 === TWG Media File Size Column === 2 Contributors: deepanker70 3 Tags: media, file size, attachment, media library, admin 4 Requires at least: 5.0 5 Tested up to: 6.7 6 Stable tag: 1.0 7 License: GPL2 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html 9 Plugin URI: https://thewpguides.com/ 10 Author URI: https://thewpguides.com/ 11 Adds a column displaying the file size of media files in the WordPress media library. 14 12 15 13 == Description == 16 14 17 TWGP Media Upload Restrictions helps you control media uploads on your WordPress site by enforcing restrictions on: 18 19 ✅ Maximum file size (in KB) 20 ✅ Maximum image resolution (width & height in px) 21 ✅ Allowed file formats (e.g., jpg, png, pdf) 22 23 🛠 **Key Features:** 24 - Easily configure settings via **Media > Upload Restrictions**. 25 - Blocks uploads that exceed size, resolution, or format limits. 26 - Displays error messages when users upload restricted files. 27 - Secure input validation and nonce protection. 28 - Fully optimized for WordPress best practices. 15 Adds a column displaying the file size of media files in the WordPress media library. The plugin enhances your media library experience by showing the size of each file, making it easier to manage media uploads. 29 16 30 17 == Installation == 31 18 32 1. Download and extract the `twgp-media-upload-restrictions.zip` file. 33 2. Upload the `twgp-media-upload-restrictions` folder to `/wp-content/plugins/`. 34 3. Activate the plugin through the **Plugins** menu in WordPress. 35 4. Go to **Media > Upload Restrictions** to configure settings. 19 1. Download and install the plugin via the WordPress admin dashboard. 20 2. Go to the Media Library, and you will see a new "File Size" column showing the size of each media file. 21 22 == Changelog == 23 24 = 1.0 = 25 * Initial release with functionality to display file size in the media library. 36 26 37 27 == Frequently Asked Questions == 38 28 39 = What happens if an uploaded file exceeds the limits? = 40 The file will not be uploaded, and an error message will display the restriction that was violated. 29 = What permissions do I need to view the file sizes? = 41 30 42 = Can I allow specific file formats? = 43 Yes! You can set allowed formats in the plugin settings (e.g., jpg, png, gif, pdf). 31 Only users with the `manage_options` capability (typically administrators) will be able to see the file sizes. 44 32 45 = Does this plugin work with all WordPress themes? = 46 Yes, it works with any WordPress theme as it only modifies media upload behavior. 33 = Does this plugin add any settings? = 47 34 48 = Does this plugin support translation? = 49 Yes, it is translation-ready using WordPress localization functions. 50 51 == Changelog == 52 53 = 1.0 = 54 - Initial release with file size, resolution, and format restrictions. 55 - Added nonce security for settings. 56 - Fully tested on WordPress 6.5. 57 58 == Upgrade Notice == 59 60 = 1.0 = 61 - First release with essential upload restrictions and security measures. 35 No, this plugin works out of the box without any settings. 62 36 63 37 == Screenshots == 64 38 65 1. **Settings Page:** Configure max file size, resolution, and allowed formats. 66 2. **Error Message Example:** Uploading a restricted file triggers an error message. 67 68 == Support == 69 70 For support or feature requests, visit: [https://thewpguides.com](https://thewpguides.com) 39 1. Screenshot of the Media Library with the new "File Size" column. -
twg-media-file-size-column/trunk/readme.txt
r3239216 r3239220 1 === TWGP Media Upload Restrictions === 2 Contributors: Deepanker 3 Author: Deepanker 4 Author URI: https://thewpguides.com 5 Tags: media, upload restrictions, file size limit, image resolution, file format restriction 6 Requires at least: 5.0 7 Tested up to: 6.7 8 Requires PHP: 7.4 9 Stable tag: 1.0 10 License: GPL2 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html 12 13 Restrict media uploads based on file size, image resolution, and allowed formats. A simple and lightweight plugin to enhance WordPress media upload security. 1 === TWG Media File Size Column === 2 Contributors: deepanker70 3 Tags: media, file size, attachment, media library, admin 4 Requires at least: 5.0 5 Tested up to: 6.7 6 Stable tag: 1.0 7 License: GPL2 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html 9 Plugin URI: https://thewpguides.com/ 10 Author URI: https://thewpguides.com/ 11 Adds a column displaying the file size of media files in the WordPress media library. 14 12 15 13 == Description == 16 14 17 TWGP Media Upload Restrictions helps you control media uploads on your WordPress site by enforcing restrictions on: 18 19 ✅ Maximum file size (in KB) 20 ✅ Maximum image resolution (width & height in px) 21 ✅ Allowed file formats (e.g., jpg, png, pdf) 22 23 🛠 **Key Features:** 24 - Easily configure settings via **Media > Upload Restrictions**. 25 - Blocks uploads that exceed size, resolution, or format limits. 26 - Displays error messages when users upload restricted files. 27 - Secure input validation and nonce protection. 28 - Fully optimized for WordPress best practices. 15 Adds a column displaying the file size of media files in the WordPress media library. The plugin enhances your media library experience by showing the size of each file, making it easier to manage media uploads. 29 16 30 17 == Installation == 31 18 32 1. Download and extract the `twgp-media-upload-restrictions.zip` file. 33 2. Upload the `twgp-media-upload-restrictions` folder to `/wp-content/plugins/`. 34 3. Activate the plugin through the **Plugins** menu in WordPress. 35 4. Go to **Media > Upload Restrictions** to configure settings. 19 1. Download and install the plugin via the WordPress admin dashboard. 20 2. Go to the Media Library, and you will see a new "File Size" column showing the size of each media file. 21 22 == Changelog == 23 24 = 1.0 = 25 * Initial release with functionality to display file size in the media library. 36 26 37 27 == Frequently Asked Questions == 38 28 39 = What happens if an uploaded file exceeds the limits? = 40 The file will not be uploaded, and an error message will display the restriction that was violated. 29 = What permissions do I need to view the file sizes? = 41 30 42 = Can I allow specific file formats? = 43 Yes! You can set allowed formats in the plugin settings (e.g., jpg, png, gif, pdf). 31 Only users with the `manage_options` capability (typically administrators) will be able to see the file sizes. 44 32 45 = Does this plugin work with all WordPress themes? = 46 Yes, it works with any WordPress theme as it only modifies media upload behavior. 33 = Does this plugin add any settings? = 47 34 48 = Does this plugin support translation? = 49 Yes, it is translation-ready using WordPress localization functions. 50 51 == Changelog == 52 53 = 1.0 = 54 - Initial release with file size, resolution, and format restrictions. 55 - Added nonce security for settings. 56 - Fully tested on WordPress 6.5. 57 58 == Upgrade Notice == 59 60 = 1.0 = 61 - First release with essential upload restrictions and security measures. 35 No, this plugin works out of the box without any settings. 62 36 63 37 == Screenshots == 64 38 65 1. **Settings Page:** Configure max file size, resolution, and allowed formats. 66 2. **Error Message Example:** Uploading a restricted file triggers an error message. 67 68 == Support == 69 70 For support or feature requests, visit: [https://thewpguides.com](https://thewpguides.com) 39 1. Screenshot of the Media Library with the new "File Size" column.
Note: See TracChangeset
for help on using the changeset viewer.