Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double file extension #148

Open
spell2022 opened this issue Aug 1, 2022 · 1 comment
Open

Double file extension #148

spell2022 opened this issue Aug 1, 2022 · 1 comment
Labels

Comments

@spell2022
Copy link

Hi, I wanted to replace destination folder name from guid to a custom name (source folder name). In lamda function 'encode' I replaced the URL with srcVideo which sorted out the problem of replacing guid based folder name to source folder name. However, as srcVideo has file path (folder/filename.mp4), the final URL path and cloudfront URLs add another file extension. The result is duplication of .mp4. The following is the code where i changed it to srcVideo:

 const inputPath = `s3://${event.srcBucket}/${event.srcVideo}`;
 const outputPath = `s3://${event.destBucket}/${event.srcVideo}`;

Output file name: myfile.mp4.mp4

Can anyone help by guiding how to remove the duplicate file extension.
Thanks.

@raulmlamzn
Copy link
Member

Thank you for your suggestion @spell2022. We'll consider your feedback and have added this request to our backlog for this solution.

@raulmlamzn raulmlamzn added the bug label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants