@@ -51,12 +51,13 @@ var (
5151 extractHtmlFooter = extractCmd .Flag ("html-footer" , "HTML snippet to append to all index.html files" ).String ()
5252
5353 // Copy command
54- copyCmd = app .Command ("copy" , "Copy a file to target storage or different key" )
55- copyKey = copyCmd .Flag ("key" , "Storage key to copy" ).Required ().String ()
56- copyDestKey = copyCmd .Flag ("dest-key" , "Destination key (defaults to source key)" ).String ()
57- copyTarget = copyCmd .Flag ("target" , "Target storage name" ).String ()
58- copyBucket = copyCmd .Flag ("bucket" , "Expected bucket (optional verification)" ).String ()
59- copyHtmlFooter = copyCmd .Flag ("html-footer" , "HTML snippet to append to copied file" ).String ()
54+ copyCmd = app .Command ("copy" , "Copy a file to target storage or different key" )
55+ copyKey = copyCmd .Flag ("key" , "Storage key to copy" ).Required ().String ()
56+ copyDestKey = copyCmd .Flag ("dest-key" , "Destination key (defaults to source key)" ).String ()
57+ copyTarget = copyCmd .Flag ("target" , "Target storage name" ).String ()
58+ copyBucket = copyCmd .Flag ("bucket" , "Expected bucket (optional verification)" ).String ()
59+ copyHtmlFooter = copyCmd .Flag ("html-footer" , "HTML snippet to append to copied file" ).String ()
60+ copyStripContentDisposition = copyCmd .Flag ("strip-content-disposition" , "Remove Content-Disposition header from copied file" ).Bool ()
6061
6162 // Delete command
6263 deleteCmd = app .Command ("delete" , "Delete files from storage" )
@@ -232,11 +233,12 @@ func runCopy(config *zipserver.Config) {
232233 ops := zipserver .NewOperations (config )
233234
234235 params := zipserver.CopyParams {
235- Key : * copyKey ,
236- DestKey : * copyDestKey ,
237- TargetName : * copyTarget ,
238- ExpectedBucket : * copyBucket ,
239- HtmlFooter : * copyHtmlFooter ,
236+ Key : * copyKey ,
237+ DestKey : * copyDestKey ,
238+ TargetName : * copyTarget ,
239+ ExpectedBucket : * copyBucket ,
240+ HtmlFooter : * copyHtmlFooter ,
241+ StripContentDisposition : * copyStripContentDisposition ,
240242 }
241243
242244 ctx , cancel := context .WithTimeout (context .Background (), time .Duration (config .JobTimeout ))
0 commit comments