...
To address this, we propose introducing an additional service file for S3 with cloud storage, specifically designed for NIC's private cloud, following the S3 protocol. Within this service file, we will introduce an upload function to handle file uploads. This addition is necessary because in NIC, there is no concept of signed URLs, and direct cloud upload is the preferred method.
Implementing two methods in the S3 storage service file in an upload function that returns the upload status, and a downloadable URL function that retrieves the URL post-upload. Exclusively utilizing the aws-sdk library for cloud interaction in this file.
Objective:
The primary objective of this proposal is to extend the functionality of the Manage Learn Service by addressing compatibility issues with NIC cloud storage. Currently, the service interacts seamlessly with various cloud platforms, including AWS, OCI, AZURE, and GCP, but encounters limitations when dealing with NIC storage due to its unique implementation using the S3 protocol.
...
In the code modification, a new service file, S3StorageService, will be added to implement the upload and downloadableUrl functions. The index.js file will be updated to incorporate the new service file and export functions from S3StorageService.
Will Implement two methods in this S3 storage service file
Upload function:-
The function, accepting file data, bucket name, and file name as inputs, will return a status indicating whether the file was successfully uploaded to the specified bucket.
Downloadable Url function:-
Following the file upload, invoking this function is possible to obtain the downloadable URL. The function, requiring the bucket name and file name as parameters, facilitates the retrieval of the corresponding URL
For this s3 storage service file and cloud interaction will use only aws-sdk library.
Documentation Update:
Revise documentation to include details about the new S3 Storage Service, its configuration parameters, and integration steps. Clearly outline the handling of NIC S3 buckets without region-specific configurations.
...