mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
upload blob
This commit is contained in:
parent
79f3779e7e
commit
8c33edcc9f
@ -438,25 +438,10 @@ export default {
|
||||
const fileName = src.split('/').pop()
|
||||
const blob = await urlToBlob(src)
|
||||
return {
|
||||
name: fileName,
|
||||
type: 'image/jpeg',
|
||||
upload: {
|
||||
uuid: 'c0a81271-3901-456d-b642-1fbebdf29097',
|
||||
progress: 0,
|
||||
total: 779384,
|
||||
bytesSent: 0,
|
||||
filename: '299551939_5382369645175932_651167422159851441_n.jpeg',
|
||||
chunked: false,
|
||||
totalChunkCount: 1,
|
||||
},
|
||||
}
|
||||
/*
|
||||
return {
|
||||
upload: new File([blob], fileName, { type: 'image/jpeg' }),
|
||||
upload: blob,
|
||||
name: fileName,
|
||||
type: 'image/jpeg',
|
||||
}
|
||||
*/
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user