ELAN only checks the last characters of remote URLs to validate file type (EAF/MP4), causing issues with signed URLs

When opening remote files in ELAN, the software validates the file type (e.g., .eaf or .mp4) by only checking the last few characters of the URL. This causes problems with cloud storage providers such as Alibaba OSS, which generate signed URLs for private objects in the following format:

https://bucket.oss-cn-region.aliyuncs.com/path/file.eaf?OSSAccessKeyId=...&Expires=...&Signature=

Since the URL ends with query parameters (e.g., Signature=...), ELAN does not detect the .eaf or .mp4 extension correctly, even though the actual file type is valid and accessible.

This validation method is too simplistic and prevents users from working with remote files stored in private buckets or any system that relies on signed URLs with query strings.

Suggested fix:
ELAN should parse the URL properly (ignoring query parameters when checking extensions) or validate the file type based on the actual HTTP headers (Content-Type) instead of only looking at the last characters of the URL.

This would make ELAN compatible with signed URLs commonly used by cloud providers (AWS S3, Alibaba OSS, Azure Blob, etc.) and remove the current limitation.

Hello,

In case of opening a remote media file, The menu File → New → Add Remote File… which asks for the address of the remote media file accepts and opens the media files stored in private buckets ( signed URLs ). If you want to open the remote media file, this can be used.

In case of opening a remote .eaf file stored in a private bucket, then you are right, currently the flow restricts by only checking the file type to be .eaf and misses the remote file checks.
We will add this item to the wish list to be implemented.

Best,
Divya