mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
Fix content-disposition header with filename containing special char
This commit is contained in:
@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user