Skip to content

Fix filename for accelerated uploads

Jan Provaznik requested to merge jprovazn-fix-filename into master

What does this MR do?

Sets upload's filename from the original name if accelerated uploads are used. It also sanitizes filename.

Are there points in the code the reviewer needs to double check?

FileUploader's filename now takes into account also @filename || super, is there a place where this could cause a problem?

Why was this MR needed?

When accelerated upload is used for file uploads, the file's name is set from the temporary filename instead of using original name.

The problem is that FileUploader overrides filename and doesn't take into account @filename variable which keeps the original filename.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#49297 (closed)

Edited by Kamil Trzciński

Merge request reports