{"id":19836900,"url":"https://github.com/pj8912/flask-file-upload","last_synced_at":"2026-05-09T19:34:57.478Z","repository":{"id":171662867,"uuid":"648204165","full_name":"pj8912/flask-file-upload","owner":"pj8912","description":"Uploading files using flask and mysql/sqlite","archived":false,"fork":false,"pushed_at":"2023-06-29T16:21:53.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T15:01:53.167Z","etag":null,"topics":["file-upload","flask","html5","mysql","python"],"latest_commit_sha":null,"homepage":"https://github.com/pj8912/flask-file-upload","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pj8912.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-06-01T12:43:15.000Z","updated_at":"2023-06-01T14:07:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a3d7bac-67e9-4cd3-ac97-94efd308caf7","html_url":"https://github.com/pj8912/flask-file-upload","commit_stats":null,"previous_names":["pj8912/flask-file-upload"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pj8912/flask-file-upload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fflask-file-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fflask-file-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fflask-file-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fflask-file-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pj8912","download_url":"https://codeload.github.com/pj8912/flask-file-upload/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fflask-file-upload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32833217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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","flask","html5","mysql","python"],"created_at":"2024-11-12T12:12:51.528Z","updated_at":"2026-05-09T19:34:57.396Z","avatar_url":"https://github.com/pj8912.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![flask-file](https://github.com/pj8912/flask-file-upload/assets/59218902/b8208310-8f76-4961-bcd6-1474d803c2b3)\n\n# File Uploading in Flask\nUploading files using flask and mysqlab\n\nTwo ways of uploading files in Flask, \n- Only directly into the folder\n- Into database from the folder\n\nFiles are saved in database as binaries, so the uploaded file is converted to binary before upload and saved as a `blob` in the database. \n\n## Requirements\n- Python `3.10.6`\n\n## Install\n- **Clone **\n```\nhttps://github.com/pj8912/flask-file-upload.git\n```\n\n- Create `virtual environment` and **activate**\n\n- ** Install requirements **\n```\npip install requirements.txt\n```\n\n## Configuration \n- I used mysql for this project\n\n- Create an `.env` and add appropiate values for your mysql setup \n\n- `.env` variables : \n    - DB_HOST=\n    - DB_USERNAME=\n    - DB_PWD=\n    - DB_NAME=file-test\n\nHost, username, password and database name\n\nMy database name is `file-test`\n\n- SQL file\nImport sql file from `mysql/file-test.sql`\n\n## Run\n\n``` \npython app.py\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpj8912%2Fflask-file-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpj8912%2Fflask-file-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpj8912%2Fflask-file-upload/lists"}