How it works...
Once a new file has been uploaded from the media uploader, it will be saved in the wp-content/uploads folder of your WordPress site with a unique file name. Inside the uploads folder, there will be several folders for each year and month. If we upload the file in January 2020, the path to the file will be wp-content/uploads/2020/01. If we upload an image file, WordPress will automatically create several images with different sizes called thumbnail, medium, and large. Then, WordPress will use the appropriate size in different places such as an archive page, single post, and so on. The original image will be also stored along with these resized versions.
Also, details about these files will be stored in the wp_posts table as ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access