{"id":16409667,"url":"https://github.com/coderatio/uploadia","last_synced_at":"2025-06-19T08:04:08.089Z","repository":{"id":56955603,"uuid":"140959388","full_name":"coderatio/uploadia","owner":"coderatio","description":"A flexible PHP file upload library","archived":false,"fork":false,"pushed_at":"2020-10-02T23:47:37.000Z","size":11,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T22:11:25.438Z","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/coderatio.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}},"created_at":"2018-07-14T16:03:42.000Z","updated_at":"2020-09-28T10:29:48.000Z","dependencies_parsed_at":"2022-08-21T08:50:25.444Z","dependency_job_id":null,"html_url":"https://github.com/coderatio/uploadia","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderatio%2Fuploadia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderatio%2Fuploadia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderatio%2Fuploadia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderatio%2Fuploadia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderatio","download_url":"https://codeload.github.com/coderatio/uploadia/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238380595,"owners_count":19462401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-11T06:20:47.550Z","updated_at":"2025-02-11T22:31:52.943Z","avatar_url":"https://github.com/coderatio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uploadia\r\nA flexible PHP file upload library\r\n\r\n# Download\r\n``composer require coderatio/uploadia`` \r\n\r\nOr Clone this repo.\r\n\r\n# Usage\r\n```php\r\nrequire 'vendor/autoload.php'; // if you downloaded via composer\r\n// OR\r\nrequire 'pathtouploadia/src/Uploadia.php';\r\n\r\n$uploadia = new Coderatio\\Uploadia\\Uploadia();\r\n$uploadia-\u003esetDir('uploads')\r\n    -\u003esetExtensions(['jpg', 'png', 'jpeg', 'gif'])\r\n    -\u003esetMaxSize(1); // In megabytes. 1MB\r\n    \r\n// There are several methods to use. e.g $uploadia-\u003eallowAllFormats()\r\n// $uploadia-\u003esameName($bool) takes a boolean. e.t.c\r\n    \r\nif($uploadia-\u003euploadFile('photo') {\r\n     // photo is the file input name.\r\n     // Get the uploaded file name or get error message.\r\n     \r\n     $uploadia-\u003egetUploadName(); // Returns uploaded file name;\r\n     $uploadia-\u003egetMessage(); // Returns error messages\r\n}\r\n```\r\n\r\n# Contribution\r\nFork the project and send pull request, email me via josiahoyahaya@gmail.com, find me on \u003ca href=\"https://twitter.com/josiahoyahaya\"\u003eTwitter\u003c/a\u003e and say something about it anywhere possible.\r\n\r\n# Licence\r\nThis project is licenced under MIT license.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderatio%2Fuploadia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderatio%2Fuploadia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderatio%2Fuploadia/lists"}