You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
OrgPostCard.tsx currently uses Base64 encoding for storing images, leading to increased memory usage and slower load times.
Solution
Use MinIO client to upload images and store only file URLs, optimizing performance and reducing payload size.
Alternatives Considered
Keeping Base64 (inefficient for large files).
Using third-party storage services (MinIO provides a self-hosted alternative).
Approach
Remove Base64 encoding.
Implement MinIO file uploads and store URLs in the database.
Ensure proper error handling and security measures.
Additional Context
This update will improve performance, scalability, and user experience for handling post images.
NOTE
We recently discovered a flaw in the code base where there are some XSS and CORS vulnerabilities. This occurs when the API and Admin servers run on different machines.
You will notice this if you configure your Admin app on your local machine to use the API running on https://test.talawa.io/graphql.
The errors in your browser will look like this:
As part of this issue you will need to ensure that the browser only interacts with the API through the Admin server and never with the API direclty.
The text was updated successfully, but these errors were encountered:
Hi @NishantSinghhhhh, I’d love to work on this issue! Since optimizing image storage with MinIO is a great improvement for performance and security, I’d be happy to implement the changes.
palisadoes
changed the title
Feature Request : Replace Base64 Storage with MinIO Client in OrgPostCard.tsx
NoMongo: Replace Base64 Storage with MinIO Client in OrgPostCard.tsx
Feb 24, 2025
Problem
OrgPostCard.tsx currently uses Base64 encoding for storing images, leading to increased memory usage and slower load times.
Solution
Use MinIO client to upload images and store only file URLs, optimizing performance and reducing payload size.
Alternatives Considered
Approach
Additional Context
This update will improve performance, scalability, and user experience for handling post images.
NOTE
We recently discovered a flaw in the code base where there are some XSS and CORS vulnerabilities. This occurs when the API and Admin servers run on different machines.
You will notice this if you configure your Admin app on your local machine to use the API running on https://test.talawa.io/graphql.
The errors in your browser will look like this:
As part of this issue you will need to ensure that the browser only interacts with the API through the Admin server and never with the API direclty.
The text was updated successfully, but these errors were encountered: