Initiate the upload flow
Objective
The goal of this step is to turn a valid user action in the web interface into a real object upload to Amazon S3. At this stage, both the frontend experience and the contract between frontend and backend must behave consistently.
Steps
- The user selects a file and enters document metadata.
- The frontend requests a presigned upload URL from the backend.
- The backend validates the input and creates a storage key.
- The frontend uploads the file directly to S3 with
PUT. - The application stores metadata after the object upload succeeds.