{"id":17972424,"url":"https://github.com/simon28082/file-upload","last_synced_at":"2025-09-04T05:35:12.737Z","repository":{"id":56958843,"uuid":"101851141","full_name":"simon28082/file-upload","owner":"simon28082","description":"Large file upload under HTTP protocol","archived":false,"fork":false,"pushed_at":"2018-07-24T23:38:21.000Z","size":452,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-05T23:32:36.786Z","etag":null,"topics":["file-upload","laravel-upload","php","upload","upload-file"],"latest_commit_sha":null,"homepage":"","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/simon28082.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":"2017-08-30T07:28:43.000Z","updated_at":"2018-08-01T07:55:57.000Z","dependencies_parsed_at":"2022-08-21T09:50:29.728Z","dependency_job_id":null,"html_url":"https://github.com/simon28082/file-upload","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/simon28082/file-upload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon28082%2Ffile-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon28082%2Ffile-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon28082%2Ffile-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon28082%2Ffile-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simon28082","download_url":"https://codeload.github.com/simon28082/file-upload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon28082%2Ffile-upload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273556192,"owners_count":25126515,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"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":["file-upload","laravel-upload","php","upload","upload-file"],"created_at":"2024-10-29T16:15:32.700Z","updated_at":"2025-09-04T05:35:12.649Z","avatar_url":"https://github.com/simon28082.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Upload\n\n## Config\n\n```\n[\n\n    'default' =\u003e 'default',\n\n    'uploads' =\u003e [\n\n        'default' =\u003e [\n            'driver' =\u003e \\CrCms\\Upload\\Drives\\DefaultUpload::class,//\n            'options' =\u003e [\n                'setFileSize' =\u003e 1024 * 1024 * 2,\n                'setRename' =\u003e true,\n                'setCheckMime' =\u003e true,\n                'setCheckExtension' =\u003e true,\n                'setExtensions' =\u003e ['jpg', 'jpeg', 'gif', 'png'],\n                'setHashDirLayer' =\u003e 2,\n                'setPath' =\u003e './uploads',\n            ]\n        ],\n        'test' =\u003e [\n            'driver' =\u003e \\CrCms\\Upload\\Drives\\WebUpload::class,//\n            'options' =\u003e [\n                'setFileSize' =\u003e 1024 * 1024 * 2,\n                'setRename' =\u003e true,\n                'setCheckMime' =\u003e true,\n                'setCheckExtension' =\u003e true,\n                'setExtensions' =\u003e ['jpg', 'jpeg', 'gif', 'png'],\n                'setHashDirLayer' =\u003e 2,\n                'setPath' =\u003e './uploads',\n            ]\n        ],\n    ],\n\n    'drives' =\u003e [\n        'webupload' =\u003e [\n            'chunk_name' =\u003e 'chunk',\n            'chunks_name' =\u003e 'chunks',\n            'size_name' =\u003e 'orig_size',\n            'new_name' =\u003e 'new_name',\n        ],\n    ],\n\n]\n\n```\n\n## Example\n\n### DefaultUpload\n\n```\nrequire '../vendor/autoload.php';\n\n$config = require '../config/upload.php';\n$config = new \\Illuminate\\Config\\Repository(['upload'=\u003e$config]);\n\n$upload = new \\CrCms\\Upload\\FileUpload($config);\n\n$file = $upload-\u003econfig('test')-\u003eupload();\n//default\n$upload-\u003eupload();\n\nprint_r($file);\n```\n\n## Install\n\nYou can install the package via composer:\n\n```\ncomposer require crcms/file-upload\n```\n\n## Laravel\n\nModify ``config / app.php``\n\n```\n'providers' =\u003e [\n    CrCms\\Upload\\LaravelServiceProvider::class,\n]\n\n```\n\nIf you'd like to make configuration changes in the configuration file you can pubish it with the following Aritsan command:\n```\nphp artisan vendor:publish --provider=\"CrCms\\Upload\\LaravelServiceProvider\"\n```\n\n## Laravel Testing\n\nView ``test/upload.php``\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon28082%2Ffile-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimon28082%2Ffile-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon28082%2Ffile-upload/lists"}