@flownet/lib-upload-files-to-gcs
v0.3.7
Published
The @fnet/files-to-gcs project is fundamentally a **file uploader**. This utility primarily works by moving files from a local system directly onto Google's Cloud Storage platform. The code can not only organize and manage file uploads, but it also provid
Downloads
47
Readme
@fnet/files-to-gcs
The @fnet/files-to-gcs project is fundamentally a file uploader. This utility primarily works by moving files from a local system directly onto Google's Cloud Storage platform. The code can not only organize and manage file uploads, but it also provides configurable options that cater to different use-cases.
Core Functionality
The main functionality of this application revolves around the handling and manipulation of file uploads. The upload process starts by browsing and selecting files from the local file system, after which they can be set for transfer to Google Cloud Storage according to specific criteria and preferences set by the user.
In terms of versatile utilisation, the program allows for an optional dry-run mode, which essentially means that files are prepared for upload but are not actually transmitted to Google Cloud Storage. This feature is essentially used for testing and validation purposes. The results obtained in the dry-run mode can be verified, and only when they meet satisfaction, actual file uploading can be conducted. This provides users the convenience of ensuring everything is correct before committing to the upload, and it also avoids unnecessary data transfer.
Another crucial attribute of this piece of software is its ability to generate and assign URLs to uploaded files. It provides two types of URLs. By default, the URLs assigned to each file are hosted directly by Google Cloud Storage. However, users also have the option to assign custom domain names to these URLs if need be.
The code also assigns metadata to uploaded files, such as the file's content type. Furthermore, it provides the ability for users to pass custom metadata during the file upload process. This metadata then gets attached to files and can be accessed later for reference or management purposes.
Lastly, a verbose option is available in the software, which when set to true, logs details about each file upload operation. This helps users track file uploads and verify whether each file has been successfully uploaded.
In summary, @fnet/files-to-gcs is a useful utility for users who need to transfer files from a local system onto Google Cloud Storage. The code's added functionality helps users adjust settings to meet their needs, makes sure the upload process is smooth, ensures that the files are organized and manageable, and guarantees that users have control over the upload right down to the file metadata.