@@ -126,6 +126,7 @@ class AWSTransport extends AbstractFileTransfer {
126126
127127 // @todo interface
128128 getDownloadUrlSigned ( filename , downloadName ) {
129+ console . log ( 'get download url signed' ) ;
129130 this . log . warn ( `${ downloadName } is not implemented yet` ) ;
130131
131132 const params = {
@@ -134,6 +135,8 @@ class AWSTransport extends AbstractFileTransfer {
134135 Key : filename ,
135136 } ;
136137
138+ console . log ( 'params with Key' , params ) ;
139+
137140 return new Promise ( ( resolve , reject ) => {
138141 this . _aws . getSignedUrl ( 'putObject' , params , ( err , url ) => {
139142 if ( err ) {
@@ -161,6 +164,7 @@ class AWSTransport extends AbstractFileTransfer {
161164 * @return {Promise }
162165 */
163166 async initResumableUpload ( opts ) {
167+ console . log ( 'init resumable upload' ) ;
164168 const params = {
165169 Bucket : this . _config . bucket . name ,
166170 Expires : DOWNLOAD_URL_EXPIRES_IN_SEC ,
@@ -235,14 +239,16 @@ class AWSTransport extends AbstractFileTransfer {
235239 * return a 403 Forbidden because the request signature you calculate will not match the signature Google calculates.
236240 * @returns {Promise }
237241 */
238- createSignedURL ( opts ) {
242+ createSignedURL ( ) {
243+ // console.log('createSignedURL opts 2', opts.resource.split('/')[opts.resource.length - 1]);
244+ console . log ( 'createSignedURL opts 2' ) ;
239245 const params = {
240246 Bucket : this . _config . bucket . name ,
241247 Expires : DOWNLOAD_URL_EXPIRES_IN_SEC ,
242- Key : opts . filename ,
248+ Key : 'test' ,
243249 } ;
244250
245- params . ContentType = opts . contentType ;
251+ // params.ContentType = opts.contentType;
246252
247253 return new Promise ( ( resolve , reject ) => {
248254 console . log ( 'signed url params' , params ) ;
0 commit comments