Project

General

Profile

Actions

CompressPdf #949

open

Update file storage's folder structure

Added by Zahid Hassan over 1 year ago. Updated over 1 year ago.

Status:
Complete
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
11/10/2024
Due date:
11/10/2024 (about 17 months late)
% Done:

100%

Estimated time:
4:00 h
Spent time:

Description

Description

Due to changes in the file storage folder structure, 11 API endpoints need updates to align with the new structure. This task includes updating paths, verifying API functionality, and conducting regression testing on the affected endpoints.
Old folder structure of storage was like this: storage/input/uid/file_index/file_name.pdf
The updated structure is : storage/input/uid/file_token/file_name.pdf
An unique file token is created for each file. To access a file, only the file token will be sufficient.

Scope of Work:

  • Identify and list affected endpoints.
  • Update file path references in each of the 11 endpoints to match the new folder structure.
  • Ensure no existing functionality is broken.

Affected Endpoints:

GET /v2/download-page-data
GET /v2/single-file-data
GET /v2/download-as-zip
GET /v2/download-as-file
PATCH /v2/download-page-expiry
PATCH /v2/download-file-expiry
PATCH /v2/filename
DELETE /v2/delete-file
POST /v2/with-validation/level-based-with-image
POST /v2/with-validation/level-based-without-image
POST /v2/image-based

Acceptance Criteria:

All 11 endpoints function correctly with the updated folder structure.
All tests pass successfully with the new structure.

Actions

Also available in: Atom PDF