mirror of
https://github.com/mito-systems/ranger-app.git
synced 2026-03-03 21:14:08 +00:00
go back lol
Some checks failed
Publish Ranger template to Laconic Registry / laconic_publish (push) Failing after 1m3s
Some checks failed
Publish Ranger template to Laconic Registry / laconic_publish (push) Failing after 1m3s
This commit is contained in:
parent
100913a460
commit
b1de5e2f3f
@ -15,11 +15,13 @@ export async function uploadToIpfs(imageBuffer: Buffer, filename: string): Promi
|
||||
throw new Error('Pinata configuration missing')
|
||||
}
|
||||
|
||||
// Use native FormData creation
|
||||
const formData = new FormData()
|
||||
|
||||
// Create file from buffer using Blob
|
||||
const blob = new Blob([imageBuffer], { type: 'image/jpeg' })
|
||||
formData.append('file', blob, filename)
|
||||
// Create file from buffer
|
||||
// Use File instead of Blob for better compatibility
|
||||
const file = new File([imageBuffer], filename, { type: 'image/jpeg' })
|
||||
formData.append('file', file, filename)
|
||||
|
||||
// Add metadata
|
||||
const pinataMetadata = JSON.stringify({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user