-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed as not planned
Closed as not planned
Copy link
Labels
issue: enhancementIssue suggesting an enhancement to an existing featureIssue suggesting an enhancement to an existing featuresource: core:uploadSource is core/upload packageSource is core/upload packagestalestale-q1-q2-2024
Description
Bug report
Required System information
Node: v18
Strapi: 4.5.6
OS: Windows 10]
DB: SQLite
Describe the bug
There is not a way afaik to send a buffer image or a base 64 image using the Entity Service API or the upload plugin. There is this forum post but it seems like a janky way to do this and I couldn't get it working: https://forum.strapi.io/t/upload-buffer-using-strapi-upload/18807
Steps to reproduce the behavior
Create new strapi app.
Try an upload a buffer using the entity service API.
Expected behavior
Ability to pass buffer or similar node js datatype within entity service
Code snippets
await strapi.entityService.create('plugin::og-generator.og-image', {
populate: '*',
data:{
collection: collectionName,
collectionID: id
},
files:{
media: image
}
})
}catch(err){
console.log(err)
}```
Metadata
Metadata
Assignees
Labels
issue: enhancementIssue suggesting an enhancement to an existing featureIssue suggesting an enhancement to an existing featuresource: core:uploadSource is core/upload packageSource is core/upload packagestalestale-q1-q2-2024
Type
Projects
Status
Archive
Status
Fixed/Shipped