Question about automating file transfer from Google Drive to hosting for direct link (.mp4)

Hello everyone,

I’m looking for a way to automatically transfer files from Google Drive to my own hosting (supports FTP/SFTP or API). The goal is to have a direct link after uploading, like this:

https://domain.com/file_1.mp4

I am using a special module to post videos to platforms that require the link to have the .mp4 extension at the end (for example, this link works fine:

https://videos.pexels.com/video-files/17169505/17169505-hd_1080_1920_30fps.mp4

I’ve tried using Google Drive’s download link format:

https://drive.google.com/uc?export=download&id=1E2x9iscBTH6Fx2&filename=file_1.mp4

However, the platform does not recognize this as a valid direct link.

Has anyone encountered this issue before or found a way to generate a proper direct link? Thanks a lot!