Is it affected to modify the file type of base64 directly?

the backend accepts base64 image files of type png, but the front end uploads either jpg, or png,. That is to say, what is the hidden bad effect if you directly modify data:image/jpeg;base64 to data:image/png;base64?

Dec.14,2021

image/jpeg and image/png just show that the content-type of this data is different, and it won't make any difference.
if the backend really needs to know jpeg/png and then processes it, it won't let you send base64

.
Menu