Comments (2)
Same issue.
Cloudinary has confirmed that Directus is uploading some images using type "raw" rather than image and it results in the asset being treated as a binary file and therefore not displayable. I think the issue is related to capitalization of "JPG" in file extensions rather than "jpg" or "jpeg".
![image](https://private-user-images.githubusercontent.com/60415816/339210820-803f60fa-5e4d-4d86-8a38-eae5551b28ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1NTQ5MzAsIm5iZiI6MTcxOTU1NDYzMCwicGF0aCI6Ii82MDQxNTgxNi8zMzkyMTA4MjAtODAzZjYwZmEtNWU0ZC00ZDg2LThhMzgtZWFlNTU1MWIyOGNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDA2MDM1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3ZWNjM2JmM2Q5MDE3Y2U2ZmNkNDJhMmM3MGQ1NjcwOGJkMmI4YzY3YjM0NDI0Zjk5YWQ2YTQzYmM3MzRkMjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.We1y1_dwa3turMuyLTdtAxW7pcXR1G24PwqGDRvsPlE)
from directus.
Good find on the extension casing! Looks like we indeed only compare the extension in it's original case against a list of lowercase, known image extensions. I've created a PR, if you have the possibility to test it for me, I'd be super grateful, as I don't have a cloudinary account flying around at the moment.
from directus.
Related Issues (20)
- Filtering a collection using comparison operators on String fields results in 400 Bad Request Error HOT 2
- Wrong primaryKey & field values on custom interfaces after upgrading Directus HOT 1
- Order of "Related Collection" tables is not alphabetically HOT 3
- Unable to create new user via api HOT 10
- Add more detail on icons used in directus HOT 2
- Directus SDK doesn't return file relational data HOT 2
- Authorization header malformed, unexpected scope: 20240624/auto/s3/aws4_request HOT 1
- create-directus-extension throws "Named export 'parse' not found" error HOT 2
- Table layout queries presentational fields
- System relations appear in schema snapshot HOT 1
- Skip directus version update check HOT 1
- FilesService: filename_disk ignored HOT 1
- Better error messages, for instance on resetting a new password HOT 1
- Calendar View does not refresh when switching content type HOT 4
- [BUG]: foreign_key schema meta missing on o2m fields with unique constraint (MySql8)
- JSON fields default value only on field creation
- Text Pasting Issues with Headings
- JSON fields are displayed as readonly if a default value exists
- Unable to Delete Bullet List with mouse HOT 1
- Allow filter operators like _gt _lt _gte _lte on string fields HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directus.