You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to upload pdf file having size 6 mb. it shows upload sucessfully, but when i go to s3 the size is 5 mb. and file is not opening.
Here is my code
varUploader=require('s3-streaming-upload').Uploader,upload=null;//this function will upload the file to s3exports.uploadFile=function(fileReadStream,filename,awsHeader,cb){//set options for the streaming moduleupload=newUploader({// credentials to access AWSaccessKey: config.aws.accessKey,secretKey: config.aws.secretKey,bucket: 'bibliohivepdf',objectName: "pdf1/"+filename,stream: fileReadStream,objectParams: {ACL: 'public-read'},debug: true});upload.send(function(err){if(err){console.log("Errro"+err);console.error('Upload error'+err);}else{console.log("Sucessfull");}});};
The text was updated successfully, but these errors were encountered:
Hello
I am trying to upload pdf file having size 6 mb. it shows upload sucessfully, but when i go to s3 the size is 5 mb. and file is not opening.
Here is my code
The text was updated successfully, but these errors were encountered: