{"id":26302016,"url":"https://github.com/youssefgamalmohamed/file-uploader-spring-boot","last_synced_at":"2026-05-07T20:15:51.241Z","repository":{"id":240054052,"uuid":"801504851","full_name":"youssefGamalMohamed/file-uploader-spring-boot","owner":"youssefGamalMohamed","description":"File Uploader Spring Boot: A lightweight file uploading application powered by Spring Boot, offering seamless file storage","archived":false,"fork":false,"pushed_at":"2024-05-24T14:22:12.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T07:17:51.518Z","etag":null,"topics":["lombok","mysql","spring-boot","spring-data-jpa","spring-validation"],"latest_commit_sha":null,"homepage":"","language":"Java","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/youssefGamalMohamed.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":"2024-05-16T11:07:46.000Z","updated_at":"2024-05-24T14:20:53.000Z","dependencies_parsed_at":"2024-05-16T13:53:27.522Z","dependency_job_id":"dc9dc9d8-b2bc-4ad7-814c-d7e9382bd1ea","html_url":"https://github.com/youssefGamalMohamed/file-uploader-spring-boot","commit_stats":null,"previous_names":["youssefgamalmohamed/file-uploader-spring-boot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/youssefGamalMohamed/file-uploader-spring-boot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssefGamalMohamed%2Ffile-uploader-spring-boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssefGamalMohamed%2Ffile-uploader-spring-boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssefGamalMohamed%2Ffile-uploader-spring-boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssefGamalMohamed%2Ffile-uploader-spring-boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youssefGamalMohamed","download_url":"https://codeload.github.com/youssefGamalMohamed/file-uploader-spring-boot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssefGamalMohamed%2Ffile-uploader-spring-boot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32754162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["lombok","mysql","spring-boot","spring-data-jpa","spring-validation"],"created_at":"2025-03-15T07:17:53.685Z","updated_at":"2026-05-07T20:15:51.226Z","avatar_url":"https://github.com/youssefGamalMohamed.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Uploader Spring Boot\n\nThis is a simple file uploader application built with Spring Boot. It allows users to upload files to the server and store them in a MySQL database.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n- [Endpoints](#endpoints)\n- [Contributing](#contributing)\n\n## Installation\n\nTo get started with this application, you'll need to clone the repository:\n\n```bash\ngit clone https://github.com/youssefGamalMohamed/file-uploader-spring-boot.git\n```\n\nThen, navigate to the project directory:\n\n```bash\ncd file-uploader-spring-boot\n```\n\n## Configuration\n\nBefore running the application, make sure to configure the `application.yml` file located in the `src/main/resources` directory. Here's an example configuration:\n\n```yaml\nserver:\n  port: 9090\n  servlet:\n    context-path: /file-storage/api/v1\n\nspring:\n  application:\n    name: file-uploader-spring-boot\n\n  datasource:\n    driver-class-name: com.mysql.cj.jdbc.Driver\n    url: jdbc:mysql://localhost:3306/file_storage\n    username: root\n    password: 1234\n  jpa:\n    hibernate:\n      ddl-auto: update\n    show-sql: true\n\n  servlet:\n    multipart:\n      max-file-size: 10MB\n      max-request-size: 20MB\n```\n\nEnsure that the MySQL database connection details (`url`, `username`, and `password`) are correctly set according to your environment. Also, adjust the `max-file-size` and `max-request-size` properties to meet your requirements.\n\n## Usage\n\nOnce the configuration is done, you can run the application using your preferred IDE or by executing the following Maven command:\n\n```bash\nmvn spring-boot:run\n```\n\nThe application will start, and you can access it through your web browser or any HTTP client. The base URL for the API endpoints is `http://localhost:9090/file-storage/api/v1`.\n\n## Endpoints\n\n1. **Upload Files Endpoint**:\n   - **Method**: POST\n   - **URL**: `/files`\n   - **Description**: Upload one or more files to the server.\n   - **Request Parameters**:\n     - `files`: List of files to be uploaded.\n   - **Response**: Returns a list of uploaded files with their corresponding URLs.\n\n2. **Find File by ID Endpoint**:\n   - **Method**: GET\n   - **URL**: `/files/{id}`\n   - **Description**: Retrieve a file by its ID.\n   - **Path Parameters**:\n     - `id`: ID of the file to retrieve.\n   - **Response**: Returns the file with the specified ID.\n\n## Contributing\n\nContributions are welcome! If you have any ideas, improvements, or bug fixes, feel free to open an issue or create a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoussefgamalmohamed%2Ffile-uploader-spring-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoussefgamalmohamed%2Ffile-uploader-spring-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoussefgamalmohamed%2Ffile-uploader-spring-boot/lists"}