Skip to content

Conversation

Andreas-Froyland
Copy link

What kind of change does this PR introduce?

Bug fix

Why was this change needed?

I encountered an issue where uploading media files worked, but posting with the same images failed. The problem was that my camera saves files with the .JPG extension, while the upload path only accepted lowercase extensions. Renaming the files to .jpg resolved the issue.

To fix this permanently, I updated the file extension validation to use .toLowerCase(), since file extensions are case-insensitive.

Other information:

Checklist:

Put a "X" in the boxes below to indicate you have followed the checklist;

  • I have read the CONTRIBUTING guide.
  • I checked that there were not similar issues or PRs already open for this.
  • This PR fixes just ONE issue (do not include multiple issues or types of change in the same PR) For example, don't try and fix a UI issue and include new dependencies in the same PR.

Copy link

vercel bot commented Sep 28, 2025

@Andreas-Froyland is attempting to deploy a commit to the Listinai Team on Vercel.

A member of the Team first needs to authorize it.

@Andreas-Froyland Andreas-Froyland changed the title add toLowerCase() in case file extensions are uppercase Bug Fix - Make file extension validation case-insensitive Sep 28, 2025
Copy link

postiz-agent bot commented Oct 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants