Implement Secure File Upload Endpoint with Validation and Error Handling#14
Open
Jockstrap6334 wants to merge 6 commits intosouravg77:5b8db60f-55d3-4956-b733-4fdb72e8ff67from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement Secure File Upload Endpoint with Validation and Error Handling
Description
Task
Create POST /upload endpoint for file uploads
Acceptance Criteria
Summary of Work
This pull request adds a robust file upload endpoint to the CDN management server, providing secure and validated file uploads.
Changes Made
src/routes/uploadRoutes.tssrc/services/fileUploadService.tsImplementation Details
multerfor file parsingValidation Checks
Testing Approach
Notes
Changes Made
Tests
Signatures
Staking Key
DWBqahm2PaMoi28xYhwk66LkLYbZw7Df7AKb5hKRrBf: 4iBnyWKbrn2Ly8MnpLAZ9Vezp1oexvk3ju5ztSCfSRsE6sgysKr8bs862zsMCcPkHXZ9drVEekyJvMgCZfkYhy3fRsbgKZVQLnF3stRZMbJVWMqk92RZMmdhejPbbrA2FBJPKDucPSTzByv2x2Hm5MpKR1UakobWFdx2yt1pKh2AT74A7pQBGtcJQ1w4A14jJ58noinsKtP8Fk15Sk2CVD3j2C6wjErbaLyr9WDjbNkqQdqWr61nU43RnkqdQj4eyGggL54FfwoqHks1hT1yhsbV2Ai8jnLMH7CCWdWoHiSmYMnUvbektR3JobBjDLLwXESLpHPr9pvng1ZFbtHhj4rgadnqVt3kafXYiHp7mu2mfgD5GvCyevKkkiwdWvdZb7RS5xF7q17UtbycbPCkHtqDC46Y38oMgGQHmZit
Public Key
2zjmVMjbiRMA7LSoefNKBMkhZyoK7hVpVz3xJU7m2NxW: 4KALEmEZb7SfQNhg1jRKcbgfVzRpFsnTNUL2WeuzPDm1Et6fp5iypTwkFadV2FMhsafSWTuCheWrgK3UTbmugPjSYK4YESgQKsJ25j8LcuesWZcEaMRDys3iqfaFATb2cAbjrRzVr7VGKu9j5rPkLvdhn8YXcw8PeeVsfooTfcRFFJg7RAN1F3HsKw9uYzCLhodT7pFY9K9D1CnhMBPRsx23iYLFeLRBboCwi96Ysn2n5ger7wJ2FmwJKGBPbFkGsqRKSingug6brHYYBWBWEhhLbSMgZue8jp9yqSPUpd6u3jFNDjESEX2YYwY5DvziAQncabAwvWqAei3xwsaqWsaw1ZvY15kWD3ZhWqPzmPgpFfp63pR1hcGHxuxyMoEFqtLomWD9RRqyC4CfCCW9zYmnYVTbg1pBYz5p6Gwn