Back to sc-files

SalesCandy Git archive

sc-files

Manages file operations such as issuing signed upload URLs.

README

This repository manages file operations, primarily by generating signed S3 upload URLs. It allows authorized clients to upload files directly to the configured storage bucket using the provided credentials and metadata.

The primary function, `getSignedPostUrl`, requires authentication permissions, the file's content type, and its MD5 hash. It returns an object containing the necessary `uploadToken` and the signed upload URL for the client to use.

Selected files and folders

  • README.md
  • package.json
  • serverless.yml
  • tests

Reconstructed issues

Summaries inferred from the archive. Original issue records are unavailable here.

Missing content type validation for audio/mp4

The system currently accepts 'audio/mp4' for signed URL generation, but the documentation lists '.mp4' for both 'audio/mp4' and 'video/mp4'. This ambiguity could lead to incorrect file handling or validation failures during upload.

78c343f40767

Inconsistent README structure after initial commit

The README documentation was updated, but the structure for listing supported content types was not fully standardized. Specifically, the separation between file extensions and MIME types needed refinement for clarity.

1b779e26655f

Database SSL configuration fix required

The database configuration was found to be using insecure settings. A fix was necessary to ensure that all connections utilize SSL encryption, which is critical for data integrity.

d483f8490363

Selected commits

  1. fixed database configuration for ssl

    Shoaib ·

    d483f84903632db0db6f507c84de478b7209d13e

  2. Add renovate.json

    Renovate Bot ·

    319f725a8404ed2817ea046e9e2dbbc11f2543c2

  3. added graphql test file

    Shoaib ·

    91fb5680daee0a113e16b0518c35dc62be2e1605

  4. remove unused extra code. and deployed to production

    Shoaib ·

    78c343f40767946173f7ef28eb892d7b9b7a9e69

  5. Initial Commit with file uploading and downloading

    Shoaib ·

    f7d4276b5d075c249357e7f31036d6b4f1c21899

  6. Initial commit

    Shoaib ·

    513e7773b82e8b7edd11903b1544885323297d18

  7. updated readme

    Shoaib ·

    1b779e26655f771b19de50b379311aeb123e0c11