Fix content-disposition header with filename containing special char

This commit is contained in:
Léopold Jacquot
2020-02-24 14:20:48 +01:00
parent 0f38c6cfc5
commit dabd80a82f
2 changed files with 1 additions and 18 deletions

View File

@ -205,7 +205,7 @@ exports.getSignedUrl = function(baseUrl, strPath, urlType, optFilename, opt_type
return new Promise(function(resolve, reject) {
var expires = (commonDefines.c_oAscUrlTypes.Session === urlType ? cfgExpSessionAbsolute : cfgStorageUrlExpires) || 31536000;
var userFriendlyName = optFilename ? optFilename.replace(/\//g, "%2f") : path.basename(strPath);
var contentDisposition = utils.getContentDispositionS3(userFriendlyName, null, opt_type);
var contentDisposition = utils.getContentDisposition(userFriendlyName, null, opt_type);
if (cfgUseRequestToGetUrl) {
//default Expires 900 seconds
var params = {