diff --git a/static/app-strings.json b/static/app-strings.json index 016010c8b..226004fe4 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -937,4 +937,4 @@ "Rewards Disabled": "Rewards Disabled", "Woah, you have a lot of friends! You've claimed the maximum amount of referral rewards. Check back soon to see if more are available!.": "Woah, you have a lot of friends! You've claimed the maximum amount of referral rewards. Check back soon to see if more are available!.", "Wallet servers are used to relay data to and from the LBRY blockchain. They also determine what content shows in trending or is blocked. %learn_more%.": "Wallet servers are used to relay data to and from the LBRY blockchain. They also determine what content shows in trending or is blocked. %learn_more%." -} \ No newline at end of file +} diff --git a/ui/component/publishFile/view.jsx b/ui/component/publishFile/view.jsx index eeb1e90ef..661746d30 100644 --- a/ui/component/publishFile/view.jsx +++ b/ui/component/publishFile/view.jsx @@ -53,7 +53,7 @@ function PublishFile(props: Props) { filePath: file.path || file, }; // Strip off extention and replace invalid characters - let fileName = file.name.substr(0, file.name.lastIndexOf('.')) || file.name; + let fileName = name || file.name.substr(0, file.name.lastIndexOf('.')) || file.name; let INVALID_URI_CHARS = new RegExp(regexInvalidURI, 'gu'); let parsedFileName = fileName.replace(INVALID_URI_CHARS, '-'); if (!isStillEditing) {