{"id":23893964,"url":"https://github.com/manoj-lk-code/custom-wp-media-uploader-api","last_synced_at":"2026-06-03T16:31:03.227Z","repository":{"id":221389219,"uuid":"754244124","full_name":"manoj-lk-code/Custom-WP-Media-Uploader-API","owner":"manoj-lk-code","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-07T17:30:44.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T06:28:31.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manoj-lk-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-07T17:17:36.000Z","updated_at":"2024-02-07T17:31:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"e47d9415-22a6-4dc5-9bb2-ba970bcbc1d6","html_url":"https://github.com/manoj-lk-code/Custom-WP-Media-Uploader-API","commit_stats":null,"previous_names":["manoj-lk-code/custom-media-uploader-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manoj-lk-code/Custom-WP-Media-Uploader-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoj-lk-code%2FCustom-WP-Media-Uploader-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoj-lk-code%2FCustom-WP-Media-Uploader-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoj-lk-code%2FCustom-WP-Media-Uploader-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoj-lk-code%2FCustom-WP-Media-Uploader-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manoj-lk-code","download_url":"https://codeload.github.com/manoj-lk-code/Custom-WP-Media-Uploader-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoj-lk-code%2FCustom-WP-Media-Uploader-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33874679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-04T14:50:07.661Z","updated_at":"2026-06-03T16:31:03.222Z","avatar_url":"https://github.com/manoj-lk-code.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Media Uploader API\n\nThis WordPress plugin, crafted by [Manoj lk](https://manojlk.work) \u0026 [ChatGPT](https://chat.openai.com), enables secure and efficient media file uploads through a REST API using file link. \n\n## Features\n\n- **Secure Uploads**: Utilizes WordPress authentication to ensure uploads are authorized.\n- **Supports Various Media Types**: Compatible with JPEG, PNG, GIF, MP4, and MP3.\n- **Customizable Endpoint**: Allows setting a unique slug for the API endpoint.\n\n## Installation\n\n1. **Download**: Get the PHP file of the plugin.\n2. **Upload**: In WordPress admin, go to Plugins \u003e Add New \u003e Upload Plugin, and upload the file.\n3. **Activate**: Activate the plugin via the 'Plugins' menu.\n\n## Configuration\n\n### Custom Slug\n\nFor security, define a custom slug in `wp-config.php`: This will provide great security and allows you to define your own custom slug for endpoint to keep it unique. [Example: you can use =\u003e qoiwusegdvbsao]\n\n```php\ndefine('WP_MEDIA_API_SLUG', 'your_custom_slug');\n```\n\nReplace `'your_custom_slug'` with something unique and you can also use cmv_api as default value. **It is recommended to use unique value for BEST OF BEST security.**\n\n### Usage\n\nUpload files via the API using curl:\n\n```bash\ncurl --location 'https://your_site_url/wp-json/wp/v2/your_slug_or_cmv_api' \\\n--header 'Content-Type: application/json' \\\n--data '{ \"file_url\": \"http://example.com/image.jpg\" }' \\\n--user 'username:password'\n```\n\nReplace placeholders with your details and the URL of the media file to upload.\n\n## Troubleshooting\n\nIf you encounter issues:\n- Ensure `WP_MEDIA_API_SLUG` is defined if you see an admin notice.\n- You can enable WordPress debug mode to enable logging for errors related to file uploads.\n\n## Disclaimer\n\nThis plugin is provided \"as is\" without warranty and is created using ChatGPT. The authors are not liable for any damages or data loss. Test in a staging environment before use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanoj-lk-code%2Fcustom-wp-media-uploader-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanoj-lk-code%2Fcustom-wp-media-uploader-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanoj-lk-code%2Fcustom-wp-media-uploader-api/lists"}