{"id":17018066,"url":"https://github.com/phanikmr/s3-uploader","last_synced_at":"2025-10-07T16:25:30.516Z","repository":{"id":57387279,"uuid":"121616656","full_name":"phanikmr/S3-Uploader","owner":"phanikmr","description":"Upload files to AWS S3 bucket with or without mulipart from browser","archived":false,"fork":false,"pushed_at":"2018-05-11T10:40:26.000Z","size":703,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-07T20:44:16.839Z","etag":null,"topics":["aws-s3","multipart","s3-bucket","uploader"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phanikmr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-15T10:31:04.000Z","updated_at":"2024-04-22T02:51:30.000Z","dependencies_parsed_at":"2022-09-07T14:51:04.832Z","dependency_job_id":null,"html_url":"https://github.com/phanikmr/S3-Uploader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phanikmr/S3-Uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanikmr%2FS3-Uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanikmr%2FS3-Uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanikmr%2FS3-Uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanikmr%2FS3-Uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phanikmr","download_url":"https://codeload.github.com/phanikmr/S3-Uploader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanikmr%2FS3-Uploader/sbom","scorecard":{"id":730522,"data":{"date":"2025-08-11","repo":{"name":"github.com/phanikmr/S3-Uploader","commit":"347b54f660730e88edacb959371075312f9d2856"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}}]},"last_synced_at":"2025-08-22T14:16:50.982Z","repository_id":57387279,"created_at":"2025-08-22T14:16:50.982Z","updated_at":"2025-08-22T14:16:50.982Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278805986,"owners_count":26049224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-s3","multipart","s3-bucket","uploader"],"created_at":"2024-10-14T06:44:21.538Z","updated_at":"2025-10-07T16:25:30.467Z","avatar_url":"https://github.com/phanikmr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# S3-Uploader\n\nS3-Uploader is a javascript library for uploading files from a browser to AWS S3, using parallel S3's multipart \u0026 non multipart uploads with MD5 checksum support and control over pausing / resuming the upload.\n\nAdapted from +[Fine uploader] (https://github.com/FineUploader/fine-uploader)\n +[EvaporateJS] (https://github.com/TTLabs/EvaporateJS)\n\nThis Javascript library Tweaked by adapting best features of Fine Uploader \u0026 EvaporateJS for max uploading speed to AWS S3 bucket\n\n# Installation\n\nS3-Uploader is publiashed as a Node module\n\n```bash\n$ npm install uploader-s3\n```\nOtherwise, include it in your HTML:\n\n```html\n\u003cscript language=\"javascript\" type=\"text/javascript\" src=\"../dist/s3uploader.min.js\"\u003e\u003c/script\u003e\n```\n\n## Example\n```javascript\n\nvar MultipartUploaderRef;\nvar BasicUploaderRef;\nvar s3Details = {};\nvar Promise = window.Promise;\nvar PART_SIZE = 6 * 1024 * 1024;\n\ns3Details.s3bucket = null;\ns3Details.signatureURL = null;\ns3Details.awsRegion = null;\ns3Details.accessKey = null;\nuploadingFilesList$ = null;\n\n\n\nfunction initialiseUploader(region, access_key, bucket, signer_url, time_url, sign_params) {\n    s3Details.s3bucket = bucket;\n    s3Details.signatureURL = signer_url;\n    s3Details.awsRegion = region;\n    s3Details.accessKey = access_key;\n\n    MultipartUploaderRef = Uploader.s3.UploaderMultipart.create({\n        signerUrl: signer_url,\n        timeUrl: time_url,\n        aws_key: access_key,\n        bucket: bucket,\n        aws_url: 'https://s3-' + region + '.amazonaws.com',\n        awsRegion: region,\n        signParams: sign_params\n    });\n    BasicUploaderRef = new Uploader.s3.UploaderBasic({\n        request: {\n            endpoint: 'https://' + bucket + '.s3.amazonaws.com',\n            accessKey: access_key\n        },\n        objectProperties: {\n            bucket: bucket,\n            host: 'https://' + bucket + '.s3.amazonaws.com',\n            key: function(id) {\n                var file = uploadingFilesList$[id];\n                return file.path + '/' + file.awsKey;\n            },\n            region: awsRegion,\n            serverSideEncryption: true\n        },\n        signature: {\n            endpoint: signer_url,\n            version: 4\n        },\n        resume: {\n            enabled: true\n        },\n        autoUpload: true,\n        maxConnections: 100,\n        chunking: {\n            enabled: false\n        },\n        retry: {\n            enableAuto: true\n        },\n        cors: {\n            expected: false,\n            sendCredentials: true,\n        },\n        callbacks: {\n            onProgress: function(id, name, totalUploaded, totalBytes) {\n                var file = uploadingFilesList$[id];\n                file.percentage = parseInt((((totalUploaded / totalBytes) * 100)).toString(), 10);\n                file.progress.loaded = totalUploaded ? ((totalUploaded / 1048576) \u003e 1 ?\n                        (totalUploaded / 1048576).toFixed(2).toString() + 'MB' :\n                        (totalUploaded / 1024).toFixed(2).toString() + 'KB') : '0KB',\n                    $(\"#\" + file.awsGuid + \"Progress\").attr(\"style\", \"width:\" + file.percentage + \"%\");\n                $(\"#\" + file.awsGuid + \"Stats\").text(file.progress.loaded + \" of \" + file.readableSize);\n            },\n            onComplete: function(id, name, success) {\n                if (success) {\n                    var file = uploadingFilesList$[id];\n                    file._promise.resolve(file);\n                }\n            },\n            onError: function(id, name, errorReason) {\n                var file = uploadingFilesList$[id];\n                file._promise.reject(file);\n            }\n        }\n    });\n    uploadingFilesList$ = new Array();\n}\n\n\nfunction cancelUploadNonMultipart(file) {\n    BasicUploaderRef.cancel(file.id);\n}\n\n\nfunction uploadFile(file, path) {\n    if (file.size \u003e PART_SIZE) {\n        return new Promise(\n            function(resolve, reject) {\n\n                MultipartUploaderRef.then(function(uploader) {\n\n                    file.cancelUpload = function() {\n                        uploader.cancel(s3Details.s3bucket + '/' + path + '/' + file.awsGuid + file.filetype);\n                    };\n\n                    var addConfig = {\n                        name: file.awsGuid + file.filetype,\n                        file: file,\n                        xAmzHeadersAtInitiate: {\n                            'x-amz-server-side-encryption': 'AES256'\n                        },\n                        progress: function(progressValue, data) {\n                            file.percentage = parseInt(((progressValue * 100)).toString(), 10);\n                            $(\"#\" + file.awsGuid + \"Progress\").attr(\"style\", \"width:\" + file.percentage + \"%\");\n                            //$(\"#\" + file.awsGuid + \"Progress\").text(file.percentage+\"%\");\n                            if (data) {\n                                file.progress = {\n                                    loaded: data.totalUploaded ? ((data.totalUploaded / 1048576) \u003e 1 ?\n                                        (data.totalUploaded / 1048576).toFixed(2).toString() + 'MB' :\n                                        (data.totalUploaded / 1024).toFixed(2).toString() + 'KB') : '0KB',\n                                    speed: data.speed ? data.readableSpeed + 'ps' : '0Kbps',\n                                    timeLeft: data \u0026\u0026 (data.secondsLeft \u003e= 0) ?\n                                        (data.secondsLeft \u003e 60 ? Math.round(data.secondsLeft / 60).toString() + 'min' :\n                                            Math.round(data.secondsLeft).toString() + 'sec') : '?sec'\n                                };\n                                $(\"#\" + file.awsGuid + \"Stats\").text(file.progress.loaded + \" of \" + file.readableSize);\n                            }\n                        }\n                    };\n                    var overrides = {\n                        bucket: s3Details.s3bucket + '/' + path\n                    };\n\n\n                    uploader.add(addConfig, overrides)\n                        .then(function(awsObjectKey) {\n                                resolve(file);\n                            },\n                            function(reason) {\n                                file.reason = reason;\n                                reject(file);\n                            });\n                });\n            });\n    } else {\n        return new Promise(\n            function(resolve, reject) {\n                file._promise = { resolve: resolve, reject: reject };\n                file.path = path + '/' + file.awsGuid + file.filetype;\n                file.cancelUpload = function() {\n                    cancelUploadNonMultipart(file);\n                };\n                file.id = uploadingFilesList$.length;\n                uploadingFilesList$.push(file);\n                BasicUploaderRef.addFiles(file);\n            });\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphanikmr%2Fs3-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphanikmr%2Fs3-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphanikmr%2Fs3-uploader/lists"}