Skip to content

rtorval/guapi

Repository files navigation

GUAPI - Go Uploads API (Beta)

This is a Go-based server that supports secure file uploads and downloads, providing token-based authentication and file metadata storage. It's designed to handle various file operations with security in mind, including token-based access, file size limitations, and duplicate file detection.

Features

  • Secure File Upload: Secure file upload with custom token authentication and file size restrictions.
  • File Metadata Storage: Stores metadata for each uploaded file, including name, sgnature, and timestamp.
  • Unique File Naming: Ensures uploaded files have unique names to avoid collisions.
  • CORS Support: Configurable Cross-Origin Resource Sharing (CORS) settings for access control.
  • Error Handling: Detailed error responses for different failure scenarios.
  • File Download: File download with optional token validation (deactivated by default).

TODO

  • Replace the plain text storage approach with a proper database for storing file metadata and tokens.
  • Add support for uploading files as byte arrays.
  • Allow users to give their files a friendly name through headers, while avoiding duplicates.
  • Think about new ideas to make the app more solid, easy to use, and ready for real-world use.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Go Uploads API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published