I have…
- [ ] Checked the logs and have provided the logs if I found something suspicious there
I’m submitting a…
- [x] Regression (a behavior that stopped working in a new release)
- [ ] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
Current behavior
Uploading of assets (images) via API are being converted to just blobs instead of images. The response model for the API infact returns isImage: false. This was working 10 days ago where the same client code was upload the assets.
If I download the blob manually from the assets and rename it to .jpg, it render the image usable on the local machine.
API Response for POST /api/apps/ivagaming/assets
{
"id": "cbf40f21-f9d3-4e7d-959a-275af18b077b",
"parentId": "00000000-0000-0000-0000-000000000000",
"fileName": "HACKSAW_GAMING_KoiCash_screenshot",
"fileHash": "Rgdp2mJ770gvFLV7A0aRqKl5JXT/lWzXr4l2c0+ocIg=",
"isProtected": false,
"slug": "hacksaw-gaming-koicash-screenshot",
"mimeType": "image/jpeg",
"fileType": "blob",
"metadataText": "28.9 kB",
"metadata": {},
"tags": [
"type/blob"
],
"fileSize": 29581,
"fileVersion": 0,
"type": "Unknown",
"createdBy": "client:ivagaming:contentapi",
"lastModifiedBy": "client:ivagaming:contentapi",
"created": "2020-01-24T11:33:11Z",
"lastModified": "2020-01-24T11:33:11Z",
"version": 0,
"isImage": false,
"_links": {...}
}
Expected behavior
Expected behaviour is for Squidex to recognize and mark the asset as an image as it used to do before; where isImage was being correctly set to true
API Response for POST /api/apps/ivagaming/assets from 10 days ago:
{
"id": "97ea848e-743f-433c-b462-55cd566e0b41",
"parentId": "00000000-0000-0000-0000-000000000000",
"fileName": "PRAGMATIC_PLAY_NATIVE_WildGladiators_screenshot",
"fileHash": "r+fKgyAPomZwFUI0IgSYtSbiNrB0Yx9a5dmYaII+97U=",
"slug": "pragmatic-play-native-wildgladiators-screenshot",
"mimeType": "image/jpeg",
"fileType": "blob",
"tags": [
"type/blob",
"image",
"image/medium"
],
"fileSize": 86331,
"fileVersion": 0,
"isImage": true,
"pixelWidth": 600,
"pixelHeight": 413,
"createdBy": "client:ivagaming:contentapi",
"lastModifiedBy": "client:ivagaming:contentapi",
"created": "2020-01-14T09:43:07Z",
"lastModified": "2020-01-14T09:43:07Z",
"version": 0,
"_links": {...}
}
Minimal reproduction of the problem
Environment
- [ ] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [x] Cloud version
Version: Current cloud version of Cloud Squidex (can’t find where the version is)
Browser:
- [x] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others:
The uploading of the asset through the browser works fine. It’s only when uploading through the API that the assets are not being converted and tagged properly.