Download Original Uploaded File

Overview Description

Download the original uploaded file associated with a specific upload history entry in Google Cloud Storage.

Activity Diagram

---
config:
  theme: base
  layout: dagre
  flowchart:
    curve: linear
    htmlLabels: true
  themeVariables:
    edgeLabelBackground: "transparent"
---
flowchart TB
    Client[Client]
    Controller[UploadGcsController]
    Storage[(GCS)]

    Client --- Step1[
      <div style='text-align: center'>
        <span style='display: inline-block; background-color: #6699cc !important; color:white; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; font-weight: bold'>1</span>
        <p style='margin-top: 8px'>GET original</p>
      </div>
    ]
    Step1 --> Controller
    Controller --> Storage
    Storage --> Controller
    Controller --> Client

Swagger Link

API: GCS Download Original

API Endpoint

  • Method: GET
  • Path: /api/v1/general/upload-file/gcs/histories/{id}/download-original
  • Auth: Required (General)

Parameters

  • id (path): Upload history ID

Responses

  • 200: File stream
  • 404: History not found
  • 403: Unauthorized

Additional Notes

  • Response is a streamed binary; set correct headers on client to save file