0
Adding an image to a blog post
Hey Sololearn, so I'm making a blog from scratch, I've made "posts" and they display correctly, got a login/sign-up, homemade comment system, but I'm stumped when I think of how to add an image to a post. I want the post process to be pretty simple: Title Post Images Done! I want the user to be able to choose a photo from their phone, computer, put it wherever they want it, at the beginning, 1/4 way, middle, end, wherever. I've tried googling it, but all I get is WordPress or Blogger. Thanks, Tyler.
2 Respostas
0
do you have a post editor?
do you allow HTML code in your blog posts?
allowing people to just link to anything may cause abuse. either linking to huge images or infected websites etc.
0
No, I don't have a post editor ... yet😂
Yes I do, for styling purposes, like the title, and the information about the post.
Yeah, I think I can make it to where it just uploads jpg or png types, and limit the upload size.
My trouble is allowing the user to upload the image wherever they want in the post without having to type in <img> element manually, and then set the classes.