We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
기능 소개 A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
TODO
ETC
NCP 공식문서
AWS 공식문서
블로그
aws S3 sdk를 쓰긴하지만 NCP bucket에 올라가기 때문에 https://guide.ncloud-docs.com/docs/storage-storage-8-4 이 문서를 참고하는게 좋아보임
const AWS = require('aws-sdk'); const fs = require('fs'); const endpoint = new AWS.Endpoint('https://kr.object.ncloudstorage.com'); const region = 'kr-standard'; const access_key = 'ACCESS_KEY'; const secret_key = 'SECRET_KEY'; const S3 = new AWS.S3({ endpoint: endpoint, region: region, credentials: { accessKeyId : access_key, secretAccessKey: secret_key } }); const bucket_name = 'sample-bucket'; const local_file_path = '/tmp/test.txt'; (async () => { let object_name = 'sample-folder/'; // create folder await S3.putObject({ Bucket: bucket_name, Key: object_name }).promise(); object_name = 'sample-object'; // upload file await S3.putObject({ Bucket: bucket_name, Key: object_name, ACL: 'public-read', // ACL을 지우면 전체 공개되지 않습니다. Body: fs.createReadStream(local_file_path) }).promise(); })();
The text was updated successfully, but these errors were encountered:
seungy0
BaeJ1H021
No branches or pull requests
기능 소개
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
TODO
ETC
참고자료
NCP 공식문서
AWS 공식문서
블로그
aws S3 sdk를 쓰긴하지만 NCP bucket에 올라가기 때문에
https://guide.ncloud-docs.com/docs/storage-storage-8-4 이 문서를 참고하는게 좋아보임
S3.putObject 함수가 아닌 presigned url 만드는 방법
https://docs.aws.amazon.com/AmazonS3/latest/userguide/example_s3_Scenario_PresignedUrl_section.html
https://velog.io/@mimi0905/Presigned-URL%EC%9D%84-%EC%9D%B4%EC%9A%A9%ED%95%98%EC%97%AC-S3%EB%A1%9C-%ED%8C%8C%EC%9D%BC-%EC%97%85%EB%A1%9C%EB%93%9C
The text was updated successfully, but these errors were encountered: